/* ===== Login Page ===== */
.login-body {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e40af 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header i {
    color: #3b82f6;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h5 {
    color: #fff;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.2rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.sidebar-nav li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(59, 130, 246, 0.5);
}

.sidebar-nav li.active a {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
    font-weight: 600;
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ef4444;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: #f87171;
}

/* ===== Main Content ===== */
.main-content {
    margin-left: 250px;
    flex: 1;
    min-height: 100vh;
    background: #f1f5f9;
}

.content-header {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-body {
    padding: 1.5rem;
}

/* ===== Stat Cards ===== */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    border-radius: 12px 12px 0 0 !important;
}

/* ===== Tables ===== */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #475569;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* ===== Charts ===== */
#facultyChart,
#attendanceChart {
    max-height: 280px;
}

#topCirclesChart,
#reportsTrendChart {
    max-height: 280px;
}

/* ===== Badges ===== */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* ===== Pagination ===== */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #475569;
}

.pagination .page-item.active .page-link {
    background: #3b82f6;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-header h5,
    .sidebar-header small,
    .sidebar-nav li a span,
    .sidebar-footer a span {
        display: none;
    }

    .sidebar-nav li a {
        justify-content: center;
        padding: 0.75rem;
    }

    .sidebar-nav li a i {
        font-size: 1.2rem;
    }

    .sidebar-footer a {
        justify-content: center;
    }

    .main-content {
        margin-left: 70px;
    }
}
