:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

/* ===== LOGIN ===== */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}
.login-wrap::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px; right: -200px;
}
.login-wrap::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 50%;
    bottom: -150px; left: -150px;
}
.login-card {
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}
.login-logo {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 32px; font-weight: 800;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    padding: 1.5rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
}
.sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}
.sidebar-brand h5 { font-weight: 700; margin: 0; font-size: 1rem; line-height: 1.3; }
.sidebar-brand small { color: rgba(255,255,255,0.65); font-size: 0.75rem; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav a.active {
    background: rgba(255,255,255,0.12);
    border-left-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.sidebar-nav .icon { width: 20px; text-align: center; }

.main { margin-left: 260px; flex: 1; padding: 2rem; }
.topbar {
    background: var(--card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { font-size: 1.4rem; margin: 0; font-weight: 700; color: var(--primary); }

/* ===== CARDS ===== */
.stat-card {
    background: var(--card);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.stat-card .label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 0.4rem 0; }
.stat-card .icon-box {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.icon-blue { background: #dbeafe; color: #1e40af; }
.icon-green { background: #d1fae5; color: #065f46; }
.icon-orange { background: #fed7aa; color: #9a3412; }
.icon-purple { background: #e9d5ff; color: #6b21a8; }
.icon-red { background: #fee2e2; color: #991b1b; }
.icon-cyan { background: #cffafe; color: #155e75; }

.card-pro {
    background: var(--card);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}
.card-pro .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.4rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-pro .card-body { padding: 1.4rem; }

/* ===== TABLE ===== */
.table-pro { width: 100%; border-collapse: collapse; }
.table-pro th {
    text-align: left;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.table-pro td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.table-pro tr:hover td { background: #fafbfc; }

/* ===== BADGES ===== */
.badge-status {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.b-active { background: #d1fae5; color: #065f46; }
.b-leave { background: #fef3c7; color: #92400e; }
.b-expelled { background: #fee2e2; color: #991b1b; }
.b-graduated { background: #dbeafe; color: #1e40af; }
.b-transferred { background: #e0e7ff; color: #3730a3; }
.b-restored { background: #cffafe; color: #155e75; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }

/* ===== UTILS ===== */
.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.empty-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }

@media (max-width: 768px) {
    .sidebar { width: 100%; position: relative; height: auto; }
    .main { margin-left: 0; padding: 1rem; }
}
