/* === NEBULA GLASSMORPHISM DARK THEME (V1.11) - SOURCE OF TRUTH === */
:root {
    --bg-deep: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

/* === COMPONENTS === */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex; align-items: center; gap: 0.75rem;
}

.navbar {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 50; padding: 1rem 1.5rem;
}

.brand-logo { display: flex; align-items: center; gap: 0.75rem; }

.logo-box {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    overflow: hidden;
}

.login-logo { max-height: 80px; width: auto; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }

/* === FORMS === */
.input-label {
    display: block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); margin-bottom: 0.25rem;
}

.form-input {
    width: 100%; padding: 0.75rem 1rem; font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border);
    border-radius: 0.75rem; color: white; transition: all 0.2s; outline: none;
}
.form-input:focus { border-color: var(--primary-color); background: rgba(0, 0, 0, 0.5); }
select.form-input option { background-color: #1e293b; color: white; }

.inp-sm { padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 0.75rem; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; border-radius: 0.75rem; transition: all 0.2s; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; border: 1px solid rgba(255,255,255,0.1); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); transform: translateY(-1px); }
.btn-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.btn-success:hover { background: rgba(16, 185, 129, 0.3); color: white; }
.btn-loading { opacity: 0.7; cursor: not-allowed; background: var(--glass-bg); }

/* === TABLES & SCROLL === */
.custom-table { width: 100%; text-align: left; border-collapse: collapse; }
.custom-table th { background: rgba(255, 255, 255, 0.03); padding: 1rem; font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 800; border-bottom: 1px solid var(--glass-border); }
.custom-table td { padding: 1rem; border-bottom: 1px solid var(--glass-border); font-size: 0.85rem; color: var(--text-main); }
.custom-table tr:hover { background: rgba(255, 255, 255, 0.03); }

.badge { padding: 0.25rem 0.5rem; border-radius: 0.375rem; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.badge-pkp { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-non { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-grade { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.2); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }