:root {
    --bg-color: #000000;
    --sidebar-bg: #050505;
    --card-bg: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --sidebar-width: 280px;
    --admin-color: #ef4444; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    min-height: 100vh; 
    overflow-x: hidden; 
}

/* Top Nav */
.top-nav { 
    width: 100%; 
    padding: 18px 25px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    position: sticky; 
    top: 0; 
    z-index: 999; 
    background: rgba(0, 0, 0, 0.9); 
    border-bottom: var(--glass-border); 
}

.menu-trigger { 
    font-size: 20px; 
    cursor: pointer; 
    color: var(--text-main); 
    padding: 8px; 
    border-radius: 8px;
    transition: background 0.2s;
}
.menu-trigger:hover { background: rgba(255,255,255,0.1); }

.logo { 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    font-size: 18px; 
    text-transform: uppercase;
    color: var(--text-main);
}

/* Sidebar */
.sidebar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    transform: translate3d(-100%, 0, 0); 
    width: var(--sidebar-width); 
    height: 100%; 
    background: var(--sidebar-bg); 
    border-right: 1px solid #1a1a1a; 
    z-index: 1001; 
    transition: transform 0.25s ease-out; 
    padding: 40px 20px; 
    will-change: transform; 
    display: flex;
    flex-direction: column;
}
.sidebar.active { 
    transform: translate3d(0, 0, 0); 
}

.sidebar-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 1000; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.25s ease-out; 
    will-change: opacity;
}
.sidebar-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.nav-btn { 
    width: 100%; 
    padding: 14px 18px; 
    border-radius: 10px; 
    color: var(--text-muted); 
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 8px; 
    font-size: 15px; 
    font-weight: 500; 
    text-decoration: none; 
}

.nav-btn:hover { 
    color: var(--text-main); 
    background: rgba(255,255,255,0.05); 
    transform: translate3d(4px, 0, 0);
}

.nav-btn.active { 
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent); 
    color: var(--text-main); 
    border-left: 3px solid var(--text-main);
    border-radius: 0 10px 10px 0;
}

.nav-btn.logout-btn {
    margin-top: auto;
    color: var(--admin-color);
}
.nav-btn.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.nav-btn i { font-size: 16px; width: 20px; text-align: center; }

/* Main Content */
.container { 
    padding: 60px 20px; 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto; 
    animation: slideUp 0.5s ease-out forwards; 
}
@keyframes slideUp { 
    from { opacity: 0; transform: translate3d(0, 20px, 0); } 
    to { opacity: 1; transform: translate3d(0, 0, 0); } 
}

.admin-card { 
    background: var(--card-bg); 
    border: var(--glass-border); 
    border-radius: 20px; 
    padding: 50px 30px; 
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: #ffffff;
    filter: blur(90px);
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.card-content { position: relative; z-index: 1; }

.welcome-pill { 
    display: inline-flex; 
    align-items: center;
    gap: 6px;
    padding: 6px 14px; 
    border-radius: 50px; 
    background: rgba(255, 255, 255, 0.05); 
    color: var(--text-main); 
    font-size: 12px; 
    font-weight: 500; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

h2 { 
    font-size: 36px; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: var(--text-main); 
}

p { 
    color: var(--text-muted); 
    line-height: 1.6; 
    font-size: 16px; 
    margin-bottom: 35px; 
    max-width: 450px; 
    margin-left: auto; 
    margin-right: auto; 
}

.status-indicator { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 20px; 
    background: rgba(255, 255, 255, 0.03); 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.05); 
}

.pulse-dot { 
    width: 10px; 
    height: 10px; 
    background-color: #10b981; 
    border-radius: 50%; 
    box-shadow: 0 0 10px #10b981; 
    animation: pulse 2s infinite; 
}

@keyframes pulse { 
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } 
}

/* Login System Styles */
.login-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    padding: 20px; 
}
.login-box { 
    background: var(--card-bg); 
    border: var(--glass-border); 
    padding: 40px 30px; 
    border-radius: 16px; 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
}
.login-box i.fa-shield-halved { 
    font-size: 40px; 
    color: var(--text-main); 
    margin-bottom: 20px; 
}
.login-box h3 { 
    font-size: 24px; 
    margin-bottom: 10px; 
}
.login-box p { 
    font-size: 14px; 
    margin-bottom: 25px; 
}
.login-input { 
    width: 100%; 
    padding: 14px; 
    margin-bottom: 15px; 
    background: #111; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 8px; 
    outline: none; 
    font-family: inherit; 
    font-size: 15px; 
    transition: 0.2s; 
}
.login-input:focus { 
    border-color: #666; 
}
.login-btn { 
    width: 100%; 
    padding: 14px; 
    background: white; 
    color: black; 
    border: none; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 15px; 
    cursor: pointer; 
    transition: 0.2s; 
}
.login-btn:hover { 
    opacity: 0.9; 
}
.login-btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}
.error-msg { 
    color: var(--admin-color); 
    font-size: 13px; 
    margin-top: 15px; 
    margin-bottom: 0; 
}
.loader { 
    font-size: 18px; 
    color: var(--text-muted); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
    gap: 15px; 
}

@media (max-width: 600px) { 
  .sidebar { width: 85%; } 
  h2 { font-size: 28px; } 
  .admin-card { padding: 40px 20px; } 
}
