/* ── AAMAN Library — Main Stylesheet ─────────────────────────────────────── */
:root {
    --sidebar-bg:    #1a2744;
    --sidebar-hover: #2d3f6e;
    --accent:        #4f8ef7;
    --accent-glow:   rgba(79,142,247,0.18);
    --bg:            #f0f4f8;
    --card-radius:   16px;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
    background: var(--sidebar-bg);
    min-height: 100vh;
    position: sticky; top: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.logo-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(79,142,247,0.12);
    display: flex; align-items: center; justify-content: center;
}
.nav-link {
    color: rgba(255,255,255,0.75) !important;
    border-radius: 8px; margin: 2px 8px;
    padding: 10px 16px !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}
.nav-link:hover { background: var(--sidebar-hover) !important; color: #fff !important; transform: translateX(4px); }
.nav-link.active { background: var(--accent) !important; color: #fff !important; box-shadow: 0 2px 12px var(--accent-glow); }

/* ── Main Content ────────────────────────────────────────────────────────── */
.main-content { padding: 28px 32px; }

/* ── Stat Cards ──────────────────────────────────────────────────────────── */
.stat-card {
    border-radius: var(--card-radius); border: none; padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

/* ── Page Header ─────────────────────────────────────────────────────────── */
.page-header { font-weight: 700; color: #1a2744; margin-bottom: 24px; }

/* ── Table Card ──────────────────────────────────────────────────────────── */
.table-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
}
.table thead th {
    background: #f8faff; color: #6b7a99;
    font-weight: 600; border: none; font-size: 0.85rem;
}
.table td { vertical-align: middle; border-color: #f0f4f8; }
.badge { font-weight: 500; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-card {
    background: #fff; border-radius: var(--card-radius);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 28px;
}
.form-label { font-weight: 500; color: #374151; font-size: 0.9rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── Login Page ──────────────────────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2744 0%, #2d3f6e 100%);
    display: flex; align-items: center; justify-content: center;
}
.login-card {
    background: #fff; border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 48px 40px; width: 100%; max-width: 420px;
}

/* ── Print ───────────────────────────────────────────────────────────────── */
@media print {
    .sidebar, .no-print { display: none !important; }
    .main-content { padding: 0; }
    body { background: #fff; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { position: relative; min-height: auto; }
    .main-content { padding: 16px; }
}
