/* ===== GLOBAL ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f0f3f7;
    color: #333;
    transition: all 0.3s;
}

.container {
    display: flex;
    min-height: calc(100vh - 70px);
}

header {
    background: linear-gradient(90deg, #b18afe, #8e2de2);
    color: #fff;
    padding: 20px 30px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
}


/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #4a00e0, #8e2de2);
    color: #fff;
    padding: 25px 20px;
    flex-shrink: 0;
    border-radius: 0 15px 15px 0;
}

.sidebar h1 {
    font-size: 1.9em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.sidebar button:hover {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 30px 35px;
}

/* ===== SECTION & CARDS ===== */
.section {
    display: none;
    margin-bottom: 30px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

h2 {
    color: #4a00e0;
    margin-bottom: 20px;
    font-size: 1.6em;
}

/* ===== PROFILE ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-header img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #8e2de2;
}

/* ===== BUTTONS ===== */
.buttons-row button,
.tool-group button,
.grade-box button {
    background: linear-gradient(90deg, #ff512f, #dd2476);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    margin: 5px 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.buttons-row button:hover,
.tool-group button:hover,
.grade-box button:hover {
    background: linear-gradient(90deg, #dd2476, #ff512f);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

/* ===== TOOLS ===== */
.tool-group {
    margin-bottom: 25px;
}

.tool-group input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 220px;
    transition: all 0.3s;
}

.tool-group input:focus {
    border-color: #8e2de2;
    box-shadow: 0 0 6px rgba(142,45,226,0.4);
    outline: none;
}

/* ===== IMAGES ===== */
.images-tools {
    text-align: center;
}

.images-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 12px;
}

.images-row img {
    width: 200px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.images-row img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* ===== GRADE BOX ===== */
.grade-box input {
    display: block;
    margin-bottom: 12px;
}

.grade-box p {
    margin: 5px 0;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(90deg, #4a00e0, #8e2de2);
    color: #fff;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-weight: bold;
}

/* ===== DARK MODE ===== */
body.dark-mode {
    background: #121212;
    color: #eee;
}

body.dark-mode .sidebar {
    background: linear-gradient(180deg, #0f4db8, #2575fc);
}

body.dark-mode .card,
body.dark-mode .tool-group,
body.dark-mode .grade-box {
    background: #1e1e1e;
    color: #eee;
}

body.dark-mode input,
body.dark-mode button {
    color: #eee;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
    .container {flex-direction: column;}
    .sidebar {width: 100%; display: flex; justify-content: space-around; padding: 15px;}
    .sidebar ul {display:flex; gap:10px; flex-wrap: wrap;}
    .sidebar ul li {margin-bottom:0;}
    .profile-header {flex-direction: column; align-items:center;}
    .images-row {flex-direction: column; gap: 15px;}
}