/* ================= GLOBAL VARIABLES ================= */
:root {
    --bg-dark: #050505;
    --card-bg: #0a0a0c;
    --accent: #0070f3;
    --accent-hover: #00c6ff;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.08);
    --nav-height: 75px; /* Thodi height badhai premium look ke liye */
}

/* ================= CUSTOM SCROLLBAR (Premium Feature) ================= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ================= GLOBAL RESET ================= */
html {
    scroll-behavior: smooth; /* Smooth anchor scrolling */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Mobile click blue box remove */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================= FIXED HEADER (GLASSMORPHISM) ================= */
.navbar {
    position: sticky; /* Sticky better than fixed for body padding issues */
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}
.nav-logo span { 
    color: var(--accent); 
    text-shadow: 0 0 10px rgba(0, 112, 243, 0.4); 
}

/* Menu Desktop */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-menu a.active {
    color: var(--accent);
    background: rgba(0, 112, 243, 0.1);
}

.hamburger { 
    display: none; 
    font-size: 24px; 
    color: white; 
    cursor: pointer; 
    transition: 0.3s;
}
.hamburger:hover { color: var(--accent); }

/* Container Centering */
main.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .hamburger { display: block; }

    /* Smooth Slide-In Mobile Menu */
    .nav-menu {
        position: absolute;
        top: var(--nav-height);
        left: -100%; /* Hidden outside the screen by default */
        width: 100%;
        height: auto;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 40px rgba(0,0,0,0.8);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 15px;
    }

    .nav-menu.active { 
        left: 0; /* Slides in smoothly */
    }

    .nav-menu a {
        width: 100%;
        justify-content: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.03);
    }

    /* Dashboard & Tables on Mobile */
    main.container { padding: 15px; }
    
    /* Responsive Table Fixes (In case standard tables are used later) */
    table, thead, tbody, th, td, tr { display: block; width: 100%; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { margin-bottom: 15px; background: var(--card-bg); border-radius: 16px; padding: 15px; border: 1px solid var(--border); }
    td { border: none; position: relative; padding-left: 50%; text-align: right; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px; font-size: 14px;}
    td:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
    td:before { position: absolute; left: 15px; width: 45%; text-align: left; font-weight: 700; content: attr(data-label); color: var(--text-muted); font-size: 12px; text-transform: uppercase;}
}
