:root {
    --primary: #4f46e5;
    --primary-soft: rgba(79, 70, 229, 0.15);
    --accent: #f97316;
    --bg-dark: #050816;
    --card-bg: rgba(15, 23, 42, 0.85);
    --border-soft: rgba(148, 163, 184, 0.25);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    background: radial-gradient(circle at top, #1d2337 0, #050816 45%, #000 100%);
    color: #e5e7eb;
}

/* Login */
.login-body {
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-wrapper {
    width:100%;
    max-width:420px;
    padding:20px;
}

.login-card {
    padding:22px 20px 24px 20px;
    border-radius:24px;
}

.login-title {
    font-size:1.3rem;
    font-weight:600;
    margin-bottom:4px;
}

.login-subtitle {
    font-size:0.8rem;
    color:#9ca3af;
}

/* App layout */
.app-wrapper {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.96);
    border-right: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #f97316, #4f46e5);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.7);
}

.brand-text { line-height: 1.1; }

.brand-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.brand-sub {
    font-size: 0.68rem;
    opacity: .6;
}

.menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9ca3af;
    margin: 12px 4px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.menu li { margin-bottom: 6px; }

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    text-decoration: none;
    color: #e5e7eb;
    border: 1px solid transparent;
    transition: all .18s ease;
}

.menu-link i { font-size: 1rem; }

.menu-link:hover {
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.18), rgba(56, 189, 248, 0.1));
    border-color: rgba(129, 140, 248, 0.7);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgba(55, 65, 81, 0.9);
    font-size: 0.7rem;
    color: #9ca3af;
}

.main {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.page-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.page-sub {
    font-size: 0.8rem;
    color: #9ca3af;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.8);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-info { line-height: 1.1; }
.user-name { font-size: 0.8rem; }
.user-role { font-size: 0.65rem; color:#9ca3af; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    position: relative;
    border-radius: 18px;
    padding: 12px 14px;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-icon {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 1.5rem;
    opacity: .25;
}

.glass-card {
    border-radius: 22px;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 65px rgba(15, 23, 42, 0.95);
    padding: 14px 16px 16px 16px;
}

.card-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.card-header-row h6 {
    margin: 0;
    font-size: 0.9rem;
}

.card-header-row span {
    font-size: 0.75rem;
    color: #9ca3af;
}

.table-wrapper {
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

.table { margin-bottom: 0; font-size:0.78rem; }
.table thead { background: rgba(15, 23, 42, 1); }
.table thead th { border-bottom-color: rgba(55, 65, 81, 0.95); color:#9ca3af; }

.badge-status {
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 3px 9px;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.badge-l1 {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.badge-approved {
    background: rgba(22, 163, 74, 0.22);
    color: #6ee7b7;
}

.badge-rejected {
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
}

.btn-gradient {
    border-radius: 999px;
    border: none;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-image: linear-gradient(120deg, #4f46e5, #22d3ee);
    color: #0b1020;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.btn-gradient-approve {
    background: linear-gradient(120deg, #34d399, #10b981);
    border: none;
    border-radius: 18px;
    color: #0d1b2a;
    padding: 6px 14px;
    font-size: .78rem;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(16,185,129,.4);
    transition: .2s;
}
.btn-gradient-approve:hover {
    box-shadow: 0 0 26px rgba(16,185,129,.8);
    transform: translateY(-2px);
}

.btn-gradient-reject {
    background: linear-gradient(120deg, #f87171, #dc2626);
    border: none;
    border-radius: 18px;
    color: #fff;
    padding: 6px 14px;
    font-size:.78rem;
    font-weight:600;
    box-shadow: 0 0 18px rgba(220,38,38,.4);
    transition:.2s;
}
.btn-gradient-reject:hover {
    box-shadow: 0 0 26px rgba(220,38,38,.8);
    transform: translateY(-2px);
}

.neon-input {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 11px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 0.8rem;
    color: #e5e7eb;
}
.neon-input:focus {
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.9);
    border-color: rgba(129, 140, 248, 0.9);
    background: rgba(15, 23, 42, 1);
}

.text-hint {
    font-size: 0.7rem;
    color: #9ca3af;
}

.small-link {
    font-size:0.75rem;
    color:#93c5fd;
    text-decoration:none;
}
.small-link:hover { text-decoration:underline; }

@media (max-width: 992px) {
    .sidebar { display:none; }
    .main { padding:14px; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .stats-row { grid-template-columns: 1fr; }
    .top-bar { flex-direction:column; align-items:flex-start; }
}
