/* ==========================================================================
   1. VARIABLES & THEMING (Technological Neon Theme)
   ========================================================================== */
:root {
    /* Color Palette - Cyber Dark (Default) */
    --bg-main: #0a0f1d;                     /* Deep space dark background */
    --bg-card: rgba(16, 22, 42, 0.75);      /* Translucent tech card */
    --bg-card-hover: rgba(23, 32, 60, 0.9);
    --border-color: rgba(56, 189, 248, 0.15); /* Low-opacity cyber blue */
    --border-hover: rgba(56, 189, 248, 0.45);
    
    /* Brand Accents */
    --primary: #38bdf8;                     /* Electric Cyan */
    --primary-glow: rgba(56, 189, 248, 0.25);
    --secondary: #a855f7;                   /* Proton Purple */
    --secondary-glow: rgba(168, 85, 247, 0.25);
    --accent: #10b981;                      /* Matrix Green */
    --danger: #f43f5e;                      /* Laser Red */
    --danger-glow: rgba(244, 63, 94, 0.25);

    /* Text Colors */
    --text-primary: #f8fafc;                /* Ice white */
    --text-muted: #94a3b8;                  /* Slate gray */
    --sidebar-width: 260px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --neon-glow: 0 0 15px var(--primary-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Switcher Override */
body.light-theme {
    --bg-main: #f4f7fa;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(56, 189, 248, 0.5);
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --shadow-md: 0 10px 30px rgba(148, 163, 184, 0.12);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
    /* Sci-Fi Tech Background Patterns */
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.04) 0px, transparent 50%);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   3. LANDING PAGE STYLING (index.html)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.7);
}

body.light-theme .navbar {
    background: rgba(244, 247, 250, 0.7);
}

.navbar .logo h2 {
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    padding: 0.6rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--neon-glow);
}

.nav-links a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 75vh;
    padding: 4rem 10%;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.hero-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 1rem 2.8rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--neon-glow);
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
}

/* Features Component Grid */
.features, .about, .coming-soon {
    padding: 6rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.features h2, .about h2, .coming-soon h2 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-grid .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.feature-grid .card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: var(--neon-glow);
}

.feature-grid .card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.feature-grid .card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Section Text Content Styling */
.about p {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Coming Soon Lists Refinement */
.coming-soon ul {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coming-soon ul li {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.coming-soon ul li:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
}

/* Footer layout structural normalization */
footer {
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* ==========================================================================
   4. AUTHENTICATION PAGES (login.html, register.html)
   ========================================================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.auth-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(15, 23, 42, 0.6);
}

.input-group input:focus + i {
    color: var(--primary);
}

.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--neon-glow);
    text-align: center;
    display: block;
    font-size: 1rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--primary-glow);
}

.divider {
    text-align: center;
    margin: 1.8rem 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: #0d1326;
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

body.light-theme .divider span {
    background: var(--bg-main);
}

.social-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   5. DASHBOARD LAYOUT & SIDEPANEL NAVIGATION
   ========================================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3.5rem;
}

.sidebar .logo i {
    color: var(--primary);
    -webkit-text-fill-color: initial;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar ul li a:hover, .sidebar ul li.active a {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
}

.sidebar ul li.active a {
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding-left: 13px;
}

.dashboard-main {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

#theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

#theme-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
    transform: scale(1.05);
}

/* Metrics Displays */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-card i {
    position: absolute;
    right: 15px;
    bottom: -5px;
    font-size: 4.5rem;
    color: var(--primary);
    opacity: 0.04;
}

.stat-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   6. NOTES EDITOR & REALTIME STREAM CARDS (note.html)
   ========================================================================== */
.editor-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.editor-box input, .editor-box select, .editor-box textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.editor-box input:focus, .editor-box select:focus, .editor-box textarea:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.6);
}

.editor-box textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.editor-actions button {
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

#clear-note {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

#clear-note:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

#save-note {
    background: var(--accent);
    color: #fff;
}

#save-note:hover {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* Grid Framework for Saved Notes */
#saved-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.note-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    gap: 10px;
}

.note-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.category-badge {
    background: rgba(168, 85, 247, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.note-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.note-actions {
    display: flex;
    gap: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.note-actions button {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.note-actions button:hover {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.06);
    border-color: var(--border-color);
}

.note-actions .delete-btn:hover {
    color: var(--danger);
    background: rgba(244, 63, 94, 0.06);
    border-color: rgba(244, 63, 94, 0.2);
}

/* ==========================================================================
   7. USER PROFILE LAYOUT (profile.html)
   ========================================================================== */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 2rem;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    width: 100%;
    max-width: 455px;
    text-align: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

#profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: var(--neon-glow);
    object-fit: cover;
    margin-bottom: 1.5rem;
}

#profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

#profile-email {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.profile-info {
    display: flex;
    justify-content: space-around;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 2.2rem;
}

.profile-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   8. COMPONENT CONFIGURATION MODULES (settings.html)
   ========================================================================== */
.settings-page {
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 8px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
}

.settings-container {
    max-width: 800px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.settings-container h1 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(8px);
}

.settings-card h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-item button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.setting-item button:hover {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
}

/* Slide Switcher */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(148, 163, 184, 0.25);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Danger Zone Cards */
.danger-card {
    border-color: rgba(244, 63, 94, 0.25);
}

.danger-card h2 {
    color: var(--danger);
}

button.danger {
    background: var(--danger);
    color: white !important;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
}

button.danger:hover {
    box-shadow: 0 0 15px var(--danger-glow);
    filter: brightness(1.1);
}

/* ==========================================================================
   9. ADMIN DASHBOARD WORKSPACE (admin/dashboard.html)
   ========================================================================== */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: #060a13;
    border-right: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    flex-shrink: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 3.5rem;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.admin-menu li.active a, .admin-menu li a:hover {
    color: var(--secondary);
    background: rgba(168, 85, 247, 0.08);
}

.admin-menu li.active a {
    border-left: 3px solid var(--secondary);
    border-radius: 0 8px 8px 0;
    padding-left: 13px;
}

.admin-main {
    flex: 1;
    padding: 2.5rem 3rem;
    overflow-y: auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-stats .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    backdrop-filter: blur(8px);
}

.admin-stats .card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.admin-stats .card h2 {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-top: 0.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.search-box input {
    width: 100%;
    padding: 15px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 12px var(--secondary-glow);
}

/* High-Tech Reactive Data Tables */
.table-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    backdrop-filter: blur(8px);
}

.table-section h2 {
    margin-bottom: 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.admin-dashboard .table-section h2 {
    border-left-color: var(--secondary);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table th, table td {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.admin {
    background: rgba(168, 85, 247, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.status-badge.user {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   10. MOBILE NAV BAR & ANIMATED SLIDE DRAWER RESPONSIVENESS
   ========================================================================== */
.pulse-action-btn {
    animation: tech-pulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
}

.mobile-nav-bar {
    display: none;
    width: 100%;
    height: 65px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1100;
    backdrop-filter: blur(12px);
}

.menu-toggle-btn {
    background: transparent;
    color: var(--primary);
    font-size: 1.4rem;
    border: none;
}

.mobile-logo-text {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

/* Media Breakpoint Enhancements */
@media (max-width: 992px) {
    .mobile-nav-bar {
        display: flex;
    }

    .dashboard-layout, .admin-dashboard {
        flex-direction: column;
    }

    /* Transform side panels to slide-out structural navigation items */
    .sidebar, .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 65px;
        height: calc(100vh - 65px);
        width: 260px;
        z-index: 1050;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 35px rgba(0,0,0,0.6);
        background: #080d1a;
    }

    .sidebar.active, .admin-sidebar.active {
        transform: translateX(280px);
    }

    .dashboard-main, .admin-main {
        padding: 2rem 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* Hide top landing links on mobile standard viewports */
    }

    .auth-box {
        padding: 2.5rem 1.5rem;
    }
}