/* ==========================================================================
   BLACKLYY - THE FUTURE PROTOCOL
   Premium UI/UX System
   ========================================================================== */

/* --- CSS Variables & Theming --- */
:root {
    /* Dark Theme (Cyberpunk/Cinematic) - Default */
    --bg-base: #050505;
    --bg-secondary: #0a0a0a;
    --surface: rgba(20, 20, 25, 0.4);
    --surface-hover: rgba(30, 30, 40, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 50, 50, 0.3);
    /* God of War red essence */

    --text-primary: #ffffff;
    --text-secondary: #888899;
    --text-muted: #555566;

    --accent: #ff2a2a;
    /* Red neon */
    --accent-glow: rgba(255, 42, 42, 0.6);
    --gradient-1: linear-gradient(135deg, #ff2a2a, #ff0055);

    --blur-glass: blur(24px);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

    --transition-snappy: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    --cursor-color: #ff2a2a;
}

/* --- Minecraft Theme --- */
body.minecraft-theme {
    /* Emerald/Green accent */
    --accent: #2ecc71;
    --accent-glow: rgba(46, 204, 113, 0.6);
    --gradient-1: linear-gradient(135deg, #27ae60, #2ecc71);

    /* Blocky backgrounds */
    --bg-base: #3b3b3b;
    --bg-secondary: #2a2a2a;
    --surface: rgba(40, 40, 40, 0.9);
    /* Dark stone inventory feel */
    --surface-hover: rgba(60, 60, 60, 0.95);

    /* borders like Minecraft UI (light top/left, dark bottom/right) */
    --border-color: #555;
    --border-glow: rgba(46, 204, 113, 0.3);

    /* Hard blocky shadow without blur */
    --shadow-glass: 4px 4px 0px rgba(0, 0, 0, 0.6);
    --blur-glass: blur(0px);

    --transition-snappy: 0.1s;
    --transition-smooth: 0.5s;
    --cursor-color: #2ecc71;

    /* Background override to a dirt/stone pixel pattern */
    background-color: #3b3b3b;
    background-image:
        linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%, #2a2a2a),
        linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%, #2a2a2a);
    background-size: 64px 64px;
    background-position: 0 0, 32px 32px;
}

/* Minecraft Theme Overrides & Fonts */
body.minecraft-theme .cinematic-title,
body.minecraft-theme .cinzel,
body.minecraft-theme .outfit,
body.minecraft-theme h1,
body.minecraft-theme h2,
body.minecraft-theme h3,
body.minecraft-theme p,
body.minecraft-theme span,
body.minecraft-theme a,
body.minecraft-theme input,
body.minecraft-theme button {
    font-family: 'Press Start 2P', cursive !important;
}

body.minecraft-theme .logo-text,
body.minecraft-theme .cinematic-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: #2ecc71 !important;
    text-shadow: 4px 4px 0px #114222;
}

body.minecraft-theme .glass-container,
body.minecraft-theme .glass-panel,
body.minecraft-theme .tool-card {
    border-radius: 0 !important;
    border: 4px solid;
    border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6 !important;
    background: #8b8b8b !important;
    color: #111;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5) !important;
}

body.minecraft-theme .tool-card h3 {
    font-size: 14px;
    letter-spacing: 0;
}

body.minecraft-theme .tool-card p {
    font-size: 10px;
    color: #333 !important;
    line-height: 1.6;
}

body.minecraft-theme .glow-btn {
    border-radius: 0;
    background: #737373;
    border: 4px solid;
    border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6;
    color: #fff;
    text-shadow: 2px 2px 0px #3f3f3f;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    font-size: 10px;
    letter-spacing: 0;
}

body.minecraft-theme .glow-btn:hover {
    background: #829ca1;
    transform: translateY(2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

body.minecraft-theme .nav-item {
    border-radius: 0;
    font-size: 10px;
}

body.minecraft-theme .nav-item.active {
    background: #555 !important;
    border: 4px solid;
    border-color: #3a3a3a #c6c6c6 #c6c6c6 #3a3a3a !important;
    color: #fff !important;
    box-shadow: none;
}

body.minecraft-theme .nav-indicator {
    display: none;
}

body.minecraft-theme .input-group input,
body.minecraft-theme .input-wrapper {
    border-radius: 0;
    background: #111 !important;
    color: #fff !important;
    border: 4px solid;
    border-color: #000 #555 #555 #000 !important;
    font-size: 12px;
}

body.minecraft-theme .input-wrapper input {
    font-size: 10px;
}

body.minecraft-theme .upload-zone {
    border-radius: 0;
    border: 4px dashed #3a3a3a;
    background: #999;
}

body.minecraft-theme .upload-zone:hover {
    background: #a3a3a3;
    border-color: #2ecc71;
}

body.minecraft-theme .dz-text {
    font-size: 10px;
    color: #222;
}

body.minecraft-theme .admin-info {
    border-radius: 0;
    background: #8b8b8b;
    border: 4px solid;
    border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.6);
}

body.minecraft-theme .admin-info h2 {
    color: #111;
    text-shadow: 2px 2px 0px #555;
    font-size: 18px;
}

body.minecraft-theme .admin-info .subtitle {
    color: #2ecc71;
    font-size: 10px;
    text-shadow: 2px 2px 0px #114222;
}

body.minecraft-theme .home-desc {
    color: #222;
    font-size: 11px;
}

body.minecraft-theme #main-app,
body.minecraft-theme #login-overlay {
    background-image: none !important;
    background: transparent;
}

body.minecraft-theme .sidebar {
    background: #737373;
    border-right: 4px solid #3a3a3a;
}

body.minecraft-theme .smart-footer {
    border-radius: 0;
    border: 4px solid;
    border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6;
    background: #8b8b8b;
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.6);
}

body.minecraft-theme .theme-toggle {
    background: #737373;
    border: 4px solid;
    border-color: #c6c6c6 #3a3a3a #3a3a3a #c6c6c6;
    border-radius: 0;
    padding: 10px;
    width: auto;
    height: auto;
}

body.minecraft-theme .theme-toggle:hover {
    background: #829ca1;
}

/* Custom Minecraft Cursor logic */
body.minecraft-theme {
    cursor: url('https://cdn.iconscout.com/icon/free/png-256/minecraft-crosshair-4554314-3773199.png') 16 16, auto !important;
}

body.minecraft-theme * {
    cursor: url('https://cdn.iconscout.com/icon/free/png-256/minecraft-crosshair-4554314-3773199.png') 16 16, auto !important;
}

body.minecraft-theme .custom-cursor,
body.minecraft-theme .cursor-trail {
    display: none !important;
}

/* Hide Embers in Minecraft mode or change color */
body.minecraft-theme canvas#embers-canvas {
    filter: hue-rotate(90deg) contrast(200%);
    opacity: 0.15;
}

/* Adjust layout spaces for new fonts */
body.minecraft-theme .subtitle {
    margin-bottom: 20px;
}

body.minecraft-theme .cinematic-title {
    font-size: 32px;
}

body.minecraft-theme .section-heading {
    font-size: 20px;
}

body.minecraft-theme .header-line {
    height: 4px;
    box-shadow: 2px 2px 0px #3a3a3a;
    border-radius: 0;
}

body.minecraft-theme .card-icon-wrapper .material-symbols-outlined {
    color: #111;
}

body.minecraft-theme .icon-glow-bg {
    background: #2ecc71;
    opacity: 1;
    filter: none;
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
}

/* --- Globals & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Typography */
.cinzel {
    font-family: 'Cinzel', serif;
}

.outfit {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    outline: none;
}

input {
    font-family: inherit;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--cursor-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--cursor-color);
    transition: width 0.2s, height 0.2s, background-color 0.3s;
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--cursor-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    transition-timing-function: ease-out;
}

/* Interactive Cursor States */
.custom-cursor.hover {
    width: 12px;
    height: 12px;
}

.cursor-trail.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 42, 42, 0.1);
    border-color: transparent;
}

body.light-theme .cursor-trail.hover {
    background-color: rgba(0, 113, 227, 0.1);
}

.hidden {
    display: none !important;
}

/* --- UI Utilities (Glassmorphism) --- */
.glass-container {
    background: var(--surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-smooth);
}

.glass-panel {
    background: var(--surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
}

.magnetic {
    display: inline-block;
}

/* Animations */
@keyframes spinFade {
    0% {
        opacity: 0;
        transform: scale(0.9) rotate(-5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--accent-glow);
    }

    100% {
        box-shadow: 0 0 10px var(--accent-glow);
    }
}

@keyframes fadeZoomOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
        pointer-events: none;
    }
}

@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    50%,
    90% {
        transform: translateX(-8px);
    }

    30%,
    70% {
        transform: translateX(8px);
    }
}

/* Login Error Message */
.login-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 18px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    color: #ff4444;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeZoomIn 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
}

.login-error .material-symbols-outlined {
    font-size: 20px;
    color: #ff4444;
}

.login-error.hidden {
    display: none !important;
}

/* --- LOGIN SCREEN --- */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-base) 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.login-header-menu {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 10;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background var(--transition-snappy);
}

.icon-btn:hover {
    background: var(--surface);
}

.glass-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--surface);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: var(--shadow-glass);
    transform-origin: top right;
    animation: dropIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.glass-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.glass-dropdown a:hover {
    background: var(--surface-hover);
    color: var(--accent);
}

.login-card {
    position: relative;
    z-index: 2;
    width: 420px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: spinFade 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-container {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: transform 0.3s;
}

.cinematic-title {
    font-size: 42px;
    letter-spacing: 4px;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

#login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group .icon {
    position: absolute;
    left: 16px;
    top: 18px;
    color: var(--text-muted);
    font-size: 20px;
    transition: color 0.3s;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color var(--transition-snappy), box-shadow var(--transition-snappy);
    outline: none;
}

body.light-theme .input-group input {
    background: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.input-group input:focus+.input-highlight {
    width: 100%;
    opacity: 1;
}

.glow-btn {
    position: relative;
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    border-radius: 12px;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    overflow: hidden;
    transition: transform var(--transition-snappy), box-shadow var(--transition-snappy);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.glow-btn:active {
    transform: translateY(1px);
}

.glow-btn .ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 600ms linear;
    background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- MAIN APP STRUCTURE --- */
#main-app {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    animation: fadeZoomIn 0.8s ease forwards;
    background-image: url('assets/kratos-full.png');
    background-size: cover;
    background-position: center top;
    position: relative;
    z-index: 1;
}

#main-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
    z-index: -1;
}

/* Sidebar */
.sidebar {
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset -2px 0 20px rgba(255, 42, 42, 0.05);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 30px;
    margin-bottom: 50px;
    color: var(--accent);
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 15px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-snappy);
    overflow: hidden;
    width: 100%;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(40, 10, 10, 0.4);
    border: 1px solid rgba(255, 42, 42, 0.25);
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.05);
    border-radius: 10px;
}

.nav-item.active .material-symbols-outlined {
    color: var(--accent);
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    transition: transform var(--transition-snappy);
}

.nav-item.active .nav-indicator {
    transform: translateY(-50%) scaleY(1);
    box-shadow: 0 0 10px var(--accent-glow);
    height: 100%;
    left: -1px;
    width: 3px;
    border-radius: 4px 0 0 4px;
}

/* Main Content Area */
.content-area {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

/* Straw Hat Logo Styles */
.straw-hat-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.straw-hat-logo.small {
    width: 60px;
    height: 60px;
}

/* Home Layout Elements */
.home-layout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 2;
    padding-left: 20px;
}

.admin-info {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: rgba(10, 10, 12, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.admin-info::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: #ff3333;
    box-shadow: 0 0 20px 4px rgba(255, 51, 51, 0.6);
    border-radius: 2px;
}

.admin-info h2.cinzel {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.admin-info .subtitle {
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ff3333;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.3);
}

.home-desc {
    color: rgba(200, 200, 210, 0.85);
    line-height: 1.8;
    font-size: 15px;
    font-weight: 300;
}

/* Global Embers Canvas */
#embers-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
}

body.light-theme #embers-canvas {
    opacity: 0.1;
}

.text-glow {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Tabs Container */
.tabs-container {
    padding: 40px 60px 120px 60px;
    /* bottom padding for footer */
    position: relative;
    z-index: 4;
}

.tab-content {
    display: none;
    animation: fadeZoomIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.section-header {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 32px;
    color: var(--text-primary);
}

.header-line {
    height: 2px;
    width: 60px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tool-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform var(--transition-snappy), border-color var(--transition-snappy), box-shadow var(--transition-snappy);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 42, 42, 0.05);
}

.card-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.card-icon-wrapper .material-symbols-outlined {
    font-size: 36px;
    z-index: 2;
    position: relative;
}

.icon-glow-bg {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--accent);
    filter: blur(15px);
    opacity: 0.5;
    z-index: 1;
}

.tool-card h3 {
    font-size: 22px;
    font-weight: 600;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.1);
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(255, 42, 42, 0.05);
}

.upload-icon {
    font-size: 28px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.upload-zone:hover .upload-icon {
    color: var(--accent);
}

.dz-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.preview-area {
    min-height: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resize-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    flex: 1;
}

body.light-theme .input-wrapper {
    background: rgba(255, 255, 255, 0.5);
}

.input-wrapper .prefix {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 5px;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 14px;
}

.tool-action-btn {
    margin-top: 10px;
}

.tool-action-btn:disabled,
.upload-zone.disabled-zone {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

.locked-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.success-check {
    text-align: center;
    color: #00ffaa;
    font-size: 40px;
    animation: fadeZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Multi-Image Thumbnail Grid */
.img-pdf-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    max-height: 140px;
    overflow-y: auto;
}

.img-pdf-thumb {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}

.img-pdf-thumb:hover {
    border-color: var(--accent);
}

.img-pdf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-pdf-thumb .thumb-label {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1;
}

.img-pdf-thumb .thumb-remove {
    position: absolute;
    top: 1px;
    right: 1px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0;
}

.img-pdf-thumb:hover .thumb-remove {
    opacity: 1;
}

/* Coming Soon Placeholders */
.coming-soon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    text-align: center;
}

.floating-icon {
    font-size: 80px;
    color: var(--accent);
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    animation: float 4s ease-in-out infinite;
}

.floating-icon .material-symbols-outlined {
    font-size: inherit;
}

.glow-pulse {
    animation: pulseGlow 3s infinite;
    border-radius: 10px;
}

/* Smart Footer */
.smart-footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background: rgba(10, 10, 12, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 90;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.smart-footer::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: #ff3333;
    box-shadow: 0 0 15px 3px rgba(255, 51, 51, 0.6);
    border-radius: 2px;
}

/* adjust for layout offset */
@media(min-width: 993px) {
    .smart-footer {
        left: calc(50% + 140px);
    }
}

.social-links {
    display: flex;
    gap: 20px;
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
}

.tooltip-container {
    position: relative;
    display: flex;
    align-items: center;
}

.tooltip-container .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.tooltip-container:hover .material-symbols-outlined {
    color: var(--text-primary);
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--surface-hover);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

#theme-toggle {
    padding: 5px;
}

#theme-icon {
    color: var(--accent);
}

/* --- Responsive Adjustments --- */

/* Mobile hamburger button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

.mobile-menu-btn .material-symbols-outlined {
    font-size: 24px;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Touch devices: disable custom cursor */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
}

/* ===== TABLET (max-width: 992px) ===== */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    #main-app {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 150;
        flex-direction: column;
        padding: 30px 0;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-logo {
        display: flex;
    }

    .sidebar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
    }

    .nav-item {
        flex-direction: row;
        gap: 16px;
        padding: 16px 20px;
        border-radius: 12px;
    }

    .nav-indicator {
        left: 0;
        top: 50%;
        width: 4px;
        height: 60%;
        transform: translateY(-50%) scaleY(0);
        border-radius: 0 4px 4px 0;
    }

    .nav-item.active .nav-indicator {
        transform: translateY(-50%) scaleY(1);
    }

    .content-area {
        grid-row: 1;
        padding-bottom: 0;
    }

    .hero-section {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .tabs-container {
        padding: 30px 20px 100px 20px;
    }

    .smart-footer {
        bottom: 30px;
        padding: 10px 20px;
        gap: 20px;
        left: 50%;
        width: max-content;
    }

    .social-links {
        padding-right: 20px;
        gap: 15px;
    }

    /* Admin info card position */
    .home-layout {
        justify-content: center;
        padding-left: 0;
        padding: 0 20px;
    }

    .admin-info {
        max-width: 500px;
    }

    /* AI Chat Window */
    #ai-chat-window {
        left: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: 400px;
    }

    /* Sidebar AI trigger */
    .sidebar-ai-trigger {
        margin-top: auto;
    }
}

/* ===== MOBILE LANDSCAPE / SMALL TABLETS (max-width: 768px) ===== */
@media (max-width: 768px) {
    .tabs-container {
        padding: 20px 15px 100px 15px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .tool-card {
        padding: 24px;
    }

    .section-heading {
        font-size: 26px;
    }

    .coming-soon-wrapper {
        height: 40vh;
    }

    .floating-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .glass-pill-box h2.cinzel {
        font-size: 1.5rem !important;
    }

    .smart-footer {
        padding: 8px 16px;
        gap: 15px;
        border-radius: 20px;
    }

    .social-links {
        gap: 12px;
        padding-right: 15px;
    }

    #ai-chat-window {
        width: calc(100vw - 20px);
        max-width: none;
        height: 60vh;
    }
}

/* ===== MOBILE PORTRAIT (max-width: 500px) ===== */
@media (max-width: 500px) {
    .login-card {
        width: 92%;
        padding: 30px 20px;
    }

    .cinematic-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 12px;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .login-header-menu {
        top: 15px;
        right: 15px;
    }

    .input-group input {
        padding: 14px 16px 14px 44px;
        font-size: 14px;
    }

    .input-group .icon {
        left: 14px;
        top: 16px;
        font-size: 18px;
    }

    .glow-btn {
        padding: 14px;
        font-size: 13px;
    }

    /* Main App */
    .tabs-container {
        padding: 15px 12px 90px 12px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-card {
        padding: 20px;
        border-radius: 16px;
    }

    .tool-card h3 {
        font-size: 18px;
    }

    .tool-card p {
        font-size: 13px;
    }

    .upload-zone {
        padding: 16px;
    }

    .resize-controls {
        flex-direction: column;
        gap: 8px;
    }

    .resize-controls .text-muted {
        display: none;
    }

    .resize-controls .input-wrapper {
        width: 100%;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-heading {
        font-size: 22px;
    }

    .header-line {
        width: 40px;
    }

    /* Home */
    .home-layout {
        min-height: calc(100vh - 150px);
        padding: 0 12px;
    }

    .admin-info {
        padding: 25px;
        border-radius: 14px;
        max-width: 100%;
    }

    .admin-info h2.cinzel {
        font-size: 20px;
    }

    .home-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Coming Soon */
    .coming-soon-wrapper {
        height: 35vh;
    }

    .floating-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .glass-pill-box {
        padding: 12px 24px !important;
    }

    .glass-pill-box h2.cinzel {
        font-size: 1.2rem !important;
    }

    /* Footer */
    .smart-footer {
        bottom: 15px;
        padding: 8px 14px;
        gap: 12px;
        border-radius: 16px;
        flex-wrap: nowrap;
    }

    .social-links {
        gap: 10px;
        padding-right: 12px;
    }

    .social-svg-icon {
        width: 20px;
        height: 20px;
    }

    .tooltip {
        display: none;
    }

    /* tooltips break mobile */

    /* AI Chat */
    #ai-chat-window {
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 70vh;
        border-radius: 24px 24px 0 0;
        max-width: none;
    }

    .chat-header {
        padding: 12px;
    }

    .chat-messages {
        padding: 12px;
    }

    .chat-input-area {
        padding: 12px;
    }

    #chat-input {
        font-size: 16px;
        padding: 12px;
    }

    /* prevent iOS zoom */

    /* Sidebar AI trigger text */
    .sidebar-ai-trigger span:last-child {
        font-size: 12px;
    }
}

/* ===== VERY SMALL SCREENS (max-width: 360px) ===== */
@media (max-width: 360px) {
    .login-card {
        width: 96%;
        padding: 24px 16px;
    }

    .cinematic-title {
        font-size: 24px;
    }

    .logo-container {
        width: 60px !important;
        height: 60px !important;
    }

    .tool-card {
        padding: 16px;
    }

    .tool-card h3 {
        font-size: 16px;
    }

    .admin-info {
        padding: 20px;
    }

    .admin-info h2.cinzel {
        font-size: 18px;
    }

    .smart-footer {
        gap: 8px;
        padding: 6px 10px;
    }

    .social-links {
        gap: 8px;
        padding-right: 8px;
    }

    .social-svg-icon {
        width: 18px;
        height: 18px;
    }
}


.social-svg-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
    transition: fill var(--transition-snappy), filter var(--transition-snappy);
}

.social-links a:hover .social-svg-icon {
    fill: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* ==========================================================================
   AI CHATBOT UI
   ========================================================================== */

/* Sidebar AI Trigger */
.sidebar-ai-trigger {
    margin-top: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-ai-trigger:hover {
    background: rgba(255, 42, 42, 0.1);
    color: var(--accent);
}

.ai-glow-pulse {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse-glow 2s infinite;
}

.sidebar-ai-trigger .material-symbols-outlined {
    margin-left: 15px;
    font-size: 22px;
}

.sidebar-ai-trigger span:last-child {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 13px;
}

/* Floating AI Window */
#ai-chat-window {
    position: fixed;
    bottom: 20px;
    left: 280px;
    /* offset sidebar width */
    width: 350px;
    height: 500px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255, 42, 42, 0.1);
    transform-origin: bottom left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

#ai-chat-window.hidden {
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chat-title h3 {
    font-size: 16px;
    margin: 0;
    letter-spacing: 1px;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Custom Scrollbar override for chat */
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 42, 42, 0.3);
}

.message {
    display: flex;
    max-width: 85%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.bot-message .msg-bubble {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.user-message .msg-bubble {
    background: rgba(255, 42, 42, 0.15);
    border: 1px solid var(--accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.1);
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 15px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
}

#chat-input:focus {
    outline: none;
    border-color: var(--accent);
}

#send-chat-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* --- Wukong Theme --- */
body.wukong-theme {
    /* Bronzy/Gold accent */
    --accent: #dcb36b;
    --accent-glow: rgba(220, 179, 107, 0.4);
    --gradient-1: linear-gradient(135deg, #a67c00, #bf953f, #fcf6ba, #b38728, #fdbf59);

    /* Cinematic dark background */
    --bg-base: #0a0a0a;
    --bg-secondary: #050505;
    --surface: rgba(15, 12, 10, 0.85);
    /* Deep earthy dark */
    --surface-hover: rgba(25, 20, 18, 0.95);

    /* Elegant gold/bronze thin borders */
    --border-color: rgba(220, 179, 107, 0.3);
    --border-glow: rgba(201, 42, 42, 0.5);
    /* subtle crimson glow */

    --shadow-glass: 0 15px 35px rgba(0, 0, 0, 0.9);
    --blur-glass: blur(10px);

    --transition-snappy: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-smooth: 0.8s ease-in-out;
    --cursor-color: #dcb36b;

    background-color: var(--bg-base);
    background-image: radial-gradient(circle at center 20%, rgba(30, 25, 20, 0.8) 0%, #000 70%);
}

body.wukong-theme .cinematic-title,
body.wukong-theme .cinzel,
body.wukong-theme h1,
body.wukong-theme h2,
body.wukong-theme h3 {
    font-family: 'Cinzel', serif !important;
    text-transform: uppercase;
    letter-spacing: 4px;
}

body.wukong-theme p,
body.wukong-theme span:not(.material-symbols-outlined),
body.wukong-theme a,
body.wukong-theme input,
body.wukong-theme button {
    font-family: 'Inter', sans-serif !important;
}

body.wukong-theme .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}

body.wukong-theme .logo-text,
body.wukong-theme .cinematic-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: #e6e6e6 !important;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

body.wukong-theme .glass-container,
body.wukong-theme .glass-panel,
body.wukong-theme .tool-card {
    border-radius: 4px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--surface) !important;
    color: #dcdcdc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

/* Wukong Theme 'Buy Now' style buttons */
body.wukong-theme .glow-btn {
    border-radius: 2px;
    background: linear-gradient(to right, #b48c40, #dcb36b, #b48c40);
    border: none;
    color: #111 !important;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 18px;
    position: relative;
    clip-path: polygon(2% 0, 98% 0, 100% 10%, 100% 90%, 98% 100%, 2% 100%, 0% 90%, 0% 10%);
}

body.wukong-theme .glow-btn:hover {
    background: linear-gradient(to right, #dcb36b, #f5d792, #dcb36b);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 179, 107, 0.4);
}

body.wukong-theme .tool-card h3 {
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 1px;
}

body.wukong-theme .tool-card p {
    font-size: 13px;
    color: #a0a0a0 !important;
    line-height: 1.6;
}

body.wukong-theme .nav-item {
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 1px;
}

body.wukong-theme .nav-item.active {
    background: transparent !important;
    border: none !important;
    border-left: 2px solid var(--accent) !important;
    color: var(--accent) !important;
    box-shadow: none;
}

body.wukong-theme .nav-indicator {
    display: none;
}

body.wukong-theme .input-group input,
body.wukong-theme .input-wrapper {
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #e6e6e6 !important;
    border: 1px solid rgba(220, 179, 107, 0.2) !important;
    font-size: 15px;
}

body.wukong-theme .upload-zone {
    border-radius: 2px;
    border: 1px dashed rgba(220, 179, 107, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

body.wukong-theme .upload-zone:hover {
    background: rgba(220, 179, 107, 0.05);
    border-color: var(--accent);
}

body.wukong-theme .dz-text {
    font-size: 12px;
    color: #a0a0a0;
}

body.wukong-theme .admin-info {
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid rgba(220, 179, 107, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

body.wukong-theme .admin-info h2 {
    color: #e6e6e6;
    text-shadow: none;
    font-size: 24px;
}

body.wukong-theme .admin-info .subtitle {
    color: var(--accent);
    font-size: 12px;
    text-shadow: none;
}

body.wukong-theme .home-desc {
    color: #b0b0b0;
    font-size: 14px;
}

/* body.wukong-theme #main-app,
body.wukong-theme #login-overlay {
    background-image: url('assets/anime_train_wide.png') !important;
    background-size: 100% 100%;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
} */

body.wukong-theme #main-app,
body.wukong-theme #login-overlay {
    background-image: url('assets/anime_train_wide.png') !important;
    background-size: cover;  /* This is the magic fix! */
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.wukong-theme .sidebar {
    background: rgba(10, 8, 6, 0.9);
    border-right: 1px solid rgba(220, 179, 107, 0.1);
}

body.wukong-theme .smart-footer {
    border-radius: 4px;
    border: 1px solid rgba(220, 179, 107, 0.1);
    background: var(--surface);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8);
}

body.wukong-theme .smart-footer::after,
body.wukong-theme .admin-info::after {
    background: var(--accent) !important;
    box-shadow: 0 0 20px 4px var(--accent-glow) !important;
}

body.wukong-theme .theme-toggle {
    background: transparent;
    border: none !important;
    border-radius: 50%;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.wukong-theme .theme-toggle:hover {
    background: rgba(220, 179, 107, 0.1);
}

/* Wukong Custom Cursor */
body.wukong-theme .custom-cursor {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    display: block !important;
}

body.wukong-theme .cursor-trail {
    border-color: var(--accent);
    display: block !important;
}

/* Embers in Wukong mode - Golden yellow/orange sparks */
body.wukong-theme canvas#embers-canvas {
    filter: hue-rotate(15deg) sepia(0.5);
    /* shift to goldish */
    opacity: 0.6;
}