.loader-ajax {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
}

.list-group-item:hover {
    background-color: rgba(59, 57, 57, 0.164) !important;
}

.panel-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 2.5rem 2rem;
}

.panel-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.panel-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.module-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 2rem 1rem;
    border-radius: 9px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    min-height: 155px;
    cursor: pointer;
}

.module-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    color: #fff;
    filter: brightness(1.1);
}

.module-btn:active {
    transform: translateY(-2px) scale(0.99);
}

.module-btn i {
    font-size: 2.6rem;
    line-height: 1;
    opacity: 0.95;
}

.module-btn .btn-label {
    font-size: 1rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Individual module colors */
.btn-biblioteca {
    background: linear-gradient(145deg, #6b48ff, #a855f7);
}

.btn-frequencia {
    background: linear-gradient(145deg, #0ea5e9, #06b6d4);
}

.btn-notas {
    background: linear-gradient(145deg, #10b981, #34d399);
}

.btn-avisos {
    background: linear-gradient(145deg, #f59e0b, #fbbf24);
}

.btn-cadastro {
    background: linear-gradient(145deg, #4b5563, #9ca3af);
}

.btn-financeiro {
    background: linear-gradient(145deg, #ea580c, #fb923c);
}

.divider {
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 576px) {
    .module-btn {
        min-height: 130px;
        padding: 1.5rem 0.75rem;
    }

    .module-btn i {
        font-size: 2rem;
    }
}

:root {
    --sidebar-width: 260px;
    --header-height: 64px;
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
}

body {
    background: #f1f5f9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: #1e293b;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: #0f172a;
}

.sidebar-brand h6 {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    margin: 0;
    letter-spacing: .3px;
}

.sidebar-brand small {
    color: #94a3b8;
    font-size: .72rem;
}

.sidebar-section {
    padding: .75rem 1.25rem .35rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: .85rem;
    border-radius: 3px;
    margin: 1px .5rem;
    transition: background .15s, color .15s;
}

.sidebar-item:hover, .sidebar-item.active {
    background: rgba(255, 255, 255, .07);
    color: #f1f5f9;
}

.sidebar-item.active {
    color: #60a5fa;
}

.sidebar-item i {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

.sidebar-turma-badge {
    margin-left: auto;
    background: rgba(96, 165, 250, .15);
    color: #60a5fa;
    font-size: .68rem;
    padding: 1px 7px;
    border-radius: 10px;
}

/* ── MAIN ── */
.main-wrap {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── TOPBAR ── */
.topbar {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
}

/* ── CARDS DE STAT ── */
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 80px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card .value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #1e293b;
}

.stat-card .label {
    font-size: .78rem;
    color: #64748b;
    margin-top: 2px;
}

/* ── TABELA ── */
.table-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 6px;
}

.table-card .table {
    margin: 0;
}

.table-card .table th {
    background: #f8fafc;
    color: #475569;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: .75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table-card .table td {
    padding: .85rem 1rem;
    vertical-align: middle;
    font-size: .85rem;
    color: #374151;
    border-color: #f1f5f9;
}

.table-card .table tbody tr:hover {
    background: #f8fafc;
}

.file-icon {
    font-size: 1.5rem;
}

.badge-turma {
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
}

/* ── MODAL ── */
.modal-header {
    background: #1e293b;
    color: #fff;
    border: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-weight: 700;
    font-size: .95rem;
}

.form-label {
    font-size: .8rem;
    font-weight: 500;
    color: #475569;
    letter-spacing: .4px;
    margin-bottom: .3rem;
}

.form-control, .form-select {
    border-color: #e2e8f0;
    font-size: .875rem;
    border-radius: 4px;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* ── UPLOAD AREA ── */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 5px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f8fafc;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-zone i {
    font-size: 2rem;
    color: #94a3b8;
}

.upload-zone p {
    margin: .5rem 0 0;
    font-size: .82rem;
    color: #64748b;
}

.upload-zone input {
    display: none;
}

/* ── FILTRO BAR ── */
.filter-bar {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    min-height: 80px;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-wrap {
        margin-left: 0;
    }
}

.empty-state i {
    font-size: 3.5rem;
    color: #cbd5e1;
}

.empty-state p {
    color: #94a3b8;
    margin-top: .75rem;
}

.path-info {
    font-size: .72rem;
    color: #94a3b8;
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 2px;
}

.turma-folder {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin-bottom: .4rem;
    font-size: .82rem;
    color: #475569;
}

.turma-folder i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.ml-1 {
    margin-left: 1px;
}

.ml-2 {
    margin-left: 2px;
}

.mr-1 {
    margin-right: 1px;
}

.mr-2 {
    margin-right: 2px;
}