body {
    background: #f5f7fb;
    font-family: system-ui;
    margin: 0;
}

/* SIDEBAR */
.sidebar {
    height: 100vh;
    background: #0f172a;
    color: white;
    padding: 25px;
    position: fixed;
    width: 260px;
    overflow-y: auto;
    z-index: 1000;
    transition: left .3s ease;
}

.sidebar h4 {
    font-weight: 600;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #cbd5f5;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
}

.sidebar a:hover {
    background: #1e293b;
    color: white;
}

/* CONTEÚDO */
.content {
    margin-left: 260px;
    padding: 40px;
}

/* CARDS */
.card-discipline {
    border: none;
    border-radius: 12px;
    transition: .2s;
}

.card-discipline:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;

    background: linear-gradient(135deg, rgba(37,99,235,.20), rgba(59,130,246,.10));
    border: 1px solid rgba(59,130,246,.20);

    box-shadow: 0 6px 18px rgba(37,99,235,.12);
}

.icon-box i {
    font-size: 1.4rem;
    color: #60a5fa;

}

/* POPUP */
.sticky-popup {
    display: none;
    position: fixed;
    top: 90px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff3b0;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2000;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
}

.deadline {
    color: #dc3545;
    margin: 0;
}

/* BOTÃO MOBILE */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1500;
    border: none;
    background: #0f172a;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: none;
}

/* OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    z-index: 900;
}

.overlay.show {
    display: block;
}

/* RESPONSIVO */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        left: -260px;
    }

    .sidebar.show {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }
}

@media (max-width: 576px) {
    .sticky-popup {
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .content h2 {
        font-size: 1.4rem;
    }
}

.theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1500;
    border: none;
    background: #0f172a;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

/* 🌙 DARK MODE PREMIUM */
.dark-mode {
    background: #0b1120;
    color: #e5e7eb;
}

/* conteúdo */
.dark-mode .content {
    background: #0b1120;
    color: #f8fafc;
}

/* cards */
.dark-mode .card {
    background: #111827;
    border: 1px solid #1f2937;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.dark-mode .card-footer {
    background: #111827 !important;
}

/* textos secundários */
.dark-mode .text-muted {
    color: #94a3b8 !important;
}

/* botão materiais */
.dark-mode .btn-primary {
    background: #2563eb;
    border: none;
}

.dark-mode .btn-primary:hover {
    background: #1d4ed8;
}

/* popup */
.dark-mode .sticky-popup {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
}

.dark-mode .sticky-popup .deadline {
    color: #f87171;
}

/* campo busca */
.dark-mode #searchInput {
    background: #111827;
    border: 1px solid #334155;
    color: white;
}

/* sidebar */
.dark-mode .sidebar {
    background: #020617;
}

/* 🏫 DIVISOR DE INSTITUIÇÃO */
.school-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0 20px;
}

.school-divider::before,
.school-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(to right, transparent, #94a3b8, transparent);
}

.school-divider span {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    padding: 0 12px;
    background: #eef2ff;
    border-radius: 999px;

}

.dark-mode .school-divider span {
    color: #f8fafc;
    background: #1e293b;
}

.dark-mode .school-divider::before,
.dark-mode .school-divider::after {
    background: linear-gradient(to right, transparent, #475569, transparent);
}

/* 🎓 DIVISOR DE CURSO / TURMA */
.course-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 15px;
}

.course-divider::before,
.course-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #dbeafe, transparent);
}

.course-divider span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    white-space: nowrap;
    padding: 0 10px;
}

.dark-mode .course-divider span {
    color: #93c5fd;
}

.dark-mode .course-divider::before,
.dark-mode .course-divider::after {
    background: linear-gradient(to right, transparent, #1e40af, transparent);
}

/* 🎓 DIVISOR DE CURSO / TURMA */
.course-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 15px;
}

.course-divider::before,
.course-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    border-radius: 2px;
    background: linear-gradient(to right, transparent, #93c5fd, transparent);
}

.course-divider span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    white-space: nowrap;
    padding: 0 10px;
}

.dark-mode .course-divider span {
    color: #93c5fd;
}

.dark-mode .course-divider::before,
.dark-mode .course-divider::after {
    background: linear-gradient(to right, transparent, #2563eb, transparent);
}

/* 🎓 DIVISOR DE CURSO / TURMA */
.course-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 15px;
}

.course-divider::before,
.course-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    border-radius: 2px;
    background: linear-gradient(to right, transparent, #93c5fd, transparent);
}

.course-divider span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    white-space: nowrap;
    padding: 0 10px;
}

.dark-mode .course-divider span {
    color: #93c5fd;
}

.dark-mode .course-divider::before,
.dark-mode .course-divider::after {
    background: linear-gradient(to right, transparent, #2563eb, transparent);
}