  /*
         * CORE CSS - HostRFlix V2 Design System (Aurora / Cyber-Glass)
         */
        @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

        :root {
            /* Light Mode - Sunset Aurora */
            --brand-primary: #f43f5e; /* Rose */
            --brand-secondary: #8b5cf6; /* Violet */
            --brand-accent: #f59e0b; /* Amber */
            --bg-main: #fdf4ff; /* Fuchsia tint */
            --bg-darker: #fff7ed; /* Orange tint */
            --bg-tertiary: #f0fdfa; /* Teal tint */
            --text-main: #1e1b4b; /* Deep Indigo text */
            --text-muted: #5b21b6;
            --glass-bg: rgba(255, 255, 255, 0.75);
            --glass-border: rgba(244, 63, 94, 0.2);
            --glass-highlight: rgba(255, 255, 255, 0.95);
            --font-main: 'Outfit', sans-serif;
            --font-code: 'JetBrains Mono', monospace;
        }

        [data-theme="dark"] {
            /* Dark Mode - Cyberpunk Midnight */
            --brand-primary: #d946ef; /* Neon Fuchsia */
            --brand-secondary: #06b6d4; /* Neon Cyan */
            --brand-accent: #8b5cf6; /* Electric Purple */
            --bg-main: #020617; /* Deep Slate */
            --bg-darker: #1e1b4b; /* Deep Indigo */
            --bg-tertiary: #312e81;
            --text-main: #f8fafc;
            --text-muted: #cbd5e1;
            --glass-bg: rgba(15, 23, 42, 0.65);
            --glass-border: rgba(217, 70, 239, 0.2);
            --glass-highlight: rgba(255, 255, 255, 0.05);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: var(--font-main);
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            min-height: 100vh;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            transition: background-color 0.3s, color 0.3s;
        }

        /* V2 Ambient Background (Aurora Effect) */
        .ambient-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            /* Light mode animated gradient */
            background: linear-gradient(120deg, var(--bg-main) 0%, var(--bg-darker) 50%, var(--bg-tertiary) 100%);
            background-size: 200% 200%;
            animation: gradientShift 15s ease infinite;
            z-index: -2;
            overflow: hidden;
        }
        
        [data-theme="dark"] .ambient-bg {
            /* Dark mode radial gradient */
            background: radial-gradient(circle at 15% 50%, var(--bg-darker), transparent 60%),
                        radial-gradient(circle at 85% 30%, var(--bg-tertiary), transparent 60%),
                        var(--bg-main);
            background-size: cover;
            animation: none;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .aurora-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.5;
            animation: drift 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
        }

        .blob-1 {
            top: -10%;
            left: -10%;
            width: 50vw;
            height: 50vw;
            background: var(--brand-primary);
        }

        .blob-2 {
            bottom: -20%;
            right: -10%;
            width: 60vw;
            height: 60vw;
            background: var(--brand-secondary);
            animation-delay: -5s;
        }

        .blob-3 {
            top: 40%;
            left: 60%;
            width: 40vw;
            height: 40vw;
            background: var(--brand-accent);
            animation-duration: 25s;
        }

        @keyframes drift {
            0% {
                transform: scale(1) translate(0, 0);
            }

            100% {
                transform: scale(1.2) translate(10%, 10%);
            }
        }

        /* Typography */
        h1,
        h2,
        h3 {
            font-weight: 800;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        p {
            color: var(--text-muted);
            line-height: 1.6;
            font-weight: 300;
        }

        .gradient-text {
            background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* --- V2 Premium Loader --- */
        #loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-main);
            display: none !important;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        #loader-overlay.hidden {
            opacity: 0;
            pointer-events: none;
            transform: scale(1.05);
        }

        .loader-cube-wrap {
            width: 80px;
            height: 80px;
            perspective: 800px;
            margin-bottom: 2rem;
        }

        .loader-cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: cubeRotate 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
        }

        .cube-face {
            position: absolute;
            width: 80px;
            height: 80px;
            background: rgba(59, 130, 246, 0.1);
            border: 2px solid var(--brand-primary);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) inset;
        }

        .cube-face.front {
            transform: translateZ(40px);
        }

        .cube-face.back {
            transform: rotateY(180deg) translateZ(40px);
        }

        .cube-face.right {
            transform: rotateY(90deg) translateZ(40px);
        }

        .cube-face.left {
            transform: rotateY(-90deg) translateZ(40px);
        }

        .cube-face.top {
            transform: rotateX(90deg) translateZ(40px);
        }

        .cube-face.bottom {
            transform: rotateX(-90deg) translateZ(40px);
        }

        @keyframes cubeRotate {
            0% {
                transform: rotateX(0) rotateY(0);
            }

            100% {
                transform: rotateX(360deg) rotateY(360deg);
            }
        }

        .loader-text {
            font-size: 1.2rem;
            font-weight: 600;
            letter-spacing: 4px;
            text-transform: uppercase;
            background: linear-gradient(90deg, transparent, var(--brand-primary), var(--brand-secondary), transparent);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: textShine 2s linear infinite;
        }

        @keyframes textShine {
            to {
                background-position: 200% center;
            }
        }


        /* Container & Views */
        #app {
            margin: 0 auto;
            width: 100%;
            height: 100vh;
            position: relative;
            z-index: 1;
        }

        .view {
            display: none;
            width: 100%;
            height: 100%;
            animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .view.active {
            display: flex;
            flex-direction: column;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Navbar */
        .navbar {
            padding: 0.8rem 1%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--glass-border);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text-main);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            perspective: 1000px;
        }

        .logo:hover .brand-icon {
            transform: rotateY(180deg);
        }

        .logo .brand-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.4rem;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
            transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            color: #fff;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.3s, transform 0.3s;
            font-weight: 600;
        }

        .nav-links a:hover {
            color: var(--brand-secondary);
            transform: translateY(-1px);
        }

        /* Buttons & Inputs */
        .btn {
            background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
            color: #fff;
            border: none;
            padding: 0.8rem 2rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .btn:hover::after {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--glass-border);
            box-shadow: none;
            color: var(--text-main);
        }

        .btn-outline:hover {
            background: var(--glass-highlight);
            border-color: var(--brand-secondary);
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
        }

        .btn-danger {
            background: linear-gradient(135deg, #ef4444, #b91c1c);
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
        }

        .btn-danger:hover {
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
        }

        .input-group {
            margin-bottom: 1.5rem;
            width: 100%;
            position: relative;
        }

        .input-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-muted);
            font-size: 0.9rem;
            font-weight: 600;
        }

        .input-control {
            width: 100%;
            padding: 1rem 1.2rem;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            color: var(--text-main);
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .input-control:focus {
            outline: none;
            border-color: var(--brand-secondary);
            background: var(--glass-highlight);
            box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
        }

        /* View Specifics */
        .hero {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 2rem 5%;
            text-align: center;
        }

        .hero-badge {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.3);
            color: var(--brand-primary);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            animation: pulseGlow 2s infinite;
        }

        @keyframes pulseGlow {

            0%,
            100% {
                box-shadow: 0 0 0 rgba(139, 92, 246, 0);
            }

            50% {
                box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
            }
        }

        .hero h1 {
            font-size: clamp(2.5rem, 6vw, 5rem);
            margin-bottom: 1.5rem;
            line-height: 1.1;
            max-width: 900px;
        }

        .hero p {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            max-width: 600px;
            margin-bottom: 2.5rem;
        }

        .glass-panel {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 3rem;
            width: 100%;
            max-width: 480px;
            margin: auto;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }

        .glass-panel::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 100px;
            height: 100px;
            background: var(--brand-primary);
            filter: blur(50px);
            opacity: 0.5;
            border-radius: 50%;
        }

        /* Dashboard */
        .dashboard-container {
            padding: 3rem 5%;
            flex: 1;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 2.5rem;
        }

        /* Stats Bar */
        .stats-bar {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .stat-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 1rem 1.5rem;
            flex: 1;
            min-width: 200px;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(139, 92, 246, 0.1);
            color: var(--brand-primary);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
        }

        .stat-info .label {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .stat-info .value {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-main);
        }

        .projects-grid {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            overflow-y: auto;
            max-height: 480px;
            padding-right: 10px;
            scrollbar-width: none;
            -ms-overflow-style: none;

        }

        .projects-grid::-webkit-scrollbar {
            display: none;
        }

        .project-card {
            background: linear-gradient(135deg, var(--glass-bg) 0%, var(--glass-highlight) 100%);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 1.2rem 1.5rem;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            width: 100%;
            box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.2);
        }

        .project-title {
            font-size: 1.2rem;
            color: var(--text-main);
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 800;
            max-width: 250px;
        }

        .project-status {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.75rem;
            color: #10b981;
            font-weight: 800;
            background: rgba(16, 185, 129, 0.1);
            padding: 3px 8px;
            border-radius: 50px;
        }

        .project-status::before {
            content: '';
            width: 6px;
            height: 6px;
            background: #10b981;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .project-url {
            font-size: 0.85rem;
            color: var(--brand-secondary);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .project-url:hover {
            text-decoration: underline;
        }

        .card-actions {
            display: flex;
            gap: 0.4rem;
        }

        .card-actions .btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.85rem;
            border-radius: 6px;
        }

        /* File Upload Zone */
        .upload-zone {
            border: 2px dashed var(--glass-border);
            border-radius: 16px;
            padding: 3rem 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: var(--glass-bg);
            margin-bottom: 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .upload-zone::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .upload-zone:hover::before,
        .upload-zone.dragover::before {
            opacity: 1;
        }

        .upload-zone:hover,
        .upload-zone.dragover {
            border-color: var(--brand-primary);
        }

        .upload-icon {
            width: 64px;
            height: 64px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 1rem;
            transition: transform 0.3s;
        }

        .upload-zone:hover .upload-icon {
            transform: scale(1.1) translateY(-5px);
            background: rgba(139, 92, 246, 0.2);
        }

        .upload-zone svg {
            width: 32px;
            height: 32px;
            fill: var(--brand-secondary);
        }

        /* Viewer Iframe */
        .viewer-container {
            width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
            background: #fff;
        }

        .viewer-header {
            background: var(--brand-darker);
            padding: 0.8rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--glass-border);
        }

        .viewer-header .logo {
            font-size: 1.2rem;
        }

        .viewer-url {
            background: rgba(255, 255, 255, 0.05);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-size: 0.9rem;
            font-family: var(--font-code);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .viewer-lock {
            color: #10b981;
        }

        #site-iframe {
            flex: 1;
            width: 100%;
            border: none;
            background: #fff;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .modal-content {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 2.5rem;
            width: 90%;
            max-width: 550px;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.95) translateY(20px);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .modal-overlay.active .modal-content {
            transform: scale(1) translateY(0);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .modal-close {
            background: rgba(255, 255, 255, 0.05);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            color: var(--text-muted);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            transform: rotate(90deg);
        }

        /* Toast Notifications */
        #toast-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 2000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .toast {
            background: rgba(15, 17, 26, 0.9);
            backdrop-filter: blur(10px);
            color: #fff;
            padding: 1.2rem 1.5rem;
            border-radius: 12px;
            border: 1px solid var(--glass-border);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            border-left: 4px solid var(--brand-primary);
            animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s ease 3.6s forwards;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
        }

        .toast.success {
            border-left-color: #10b981;
        }

        .toast.error {
            border-left-color: var(--brand-accent);
        }

        @keyframes slideInRight {
            from {
                transform: translateX(120%) scale(0.9);
                opacity: 0;
            }

            to {
                transform: translateX(0) scale(1);
                opacity: 1;
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0;
                transform: translateY(-10px);
            }
        }

        /* Code Editor */
        .editor-layout {
            display: flex;
            height: calc(100vh - 74px);
            width: 100%;
            background: var(--bg-darker);
            overflow: hidden;
        }

        .file-tree {

            max-width: 250px;
            min-width: 180px;
            background: rgba(15, 23, 42, 0.95);
            border-right: 1px solid var(--glass-border);
            overflow-y: auto;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }

        .editor-pane {
            width: 64vw;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--glass-border);
            background: #1e1e1e;
        }

        .preview-pane {
            width: 30vw;
            display: flex;
            flex-direction: column;
            background: #fff;
            height: 100%;
        }

        #site-iframe,
        #editor-preview-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .tree-header {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--brand-primary);
            margin-bottom: 1.5rem;
            font-weight: 800;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .file-item {
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            cursor: pointer;
            color: var(--text-muted);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.85rem;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-code);
            border: 1px solid transparent;
        }

        .file-item:hover {
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-main);
        }

        .file-item.active {
            background: rgba(59, 130, 246, 0.1);
            color: var(--brand-primary);
            border-color: rgba(59, 130, 246, 0.2);
        }

        .editor-toolbar {
            padding: 0.5rem 1rem;
            background: #252526;
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 40px;
        }

        .editor-btn-small {
            background: transparent;
            border: none;
            color: var(--text-muted);
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .editor-btn-small:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .editor-btn-small.active {
            color: var(--brand-primary);
            background: rgba(59, 130, 246, 0.1);
        }

        .search-bar {
            position: absolute;
            top: 10px;
            right: 20px;
            background: var(--bg-darker);
            border: 1px solid var(--glass-border);
            padding: 5px 10px;
            border-radius: 8px;
            display: flex;
            gap: 5px;
            z-index: 100;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            transform: translateY(-150%);
            transition: transform 0.3s ease;
        }

        .search-bar.active {
            transform: translateY(0);
        }

        .editor-container-wrapper {
            flex: 1;
            display: flex;
            position: relative;
            overflow: hidden;
            background: #1e1e1e;
        }

        .editor-textarea {
            flex: 1;
            height: 100%;
            border: none;
            resize: none;
            outline: none;
            background: transparent;
            color: #d4d4d4;
            font-family: var(--font-code);
            font-size: 14px;
            line-height: 1.5;
            padding: 1.5rem 1rem;
            white-space: pre;
            overflow: auto;
        }

        .editor-toolbar i {
            margin-right: 5px;
        }

        /* Dashboard Enhancements */
        .activity-feed {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 1rem;
            margin-top: 2rem;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.9rem;
        }

        .activity-item i {
            color: var(--brand-primary);
        }

        .search-box-container {
            position: relative;
            margin-bottom: 2rem;
        }

        .search-box-container i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }

        .search-box-container input {
            padding-left: 45px !important;
        }

        .maintenance-badge {
            background: #ef4444;
            color: #fff;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 800;
            margin-left: 10px;
        }

        /* Profile Modal */
        .profile-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem;
        }

        .avatar-large {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: var(--glass-bg);
            border: 3px solid var(--brand-primary);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .profile-bio {
            text-align: center;
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .navbar {
                padding: 1rem;
            }

            .nav-links {
                display: none;
                /* simple hidden for mobile, can add hamburger later */
            }

            .dashboard-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .stats-bar {
                flex-direction: column;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .editor-layout {
                flex-direction: column;
            }

            .file-tree {
                width: 100%;
                height: 200px;
                border-right: none;
                border-bottom: 1px solid var(--glass-border);
            }

            .preview-pane {
                height: 300px;
                flex: none !important;
            }
        }

        /* Error view */
        .error-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            text-align: center;
            padding: 2rem;
        }

        .error-404 {
            font-size: 8rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hidden {
            display: none !important;
        }
        /* Hide scrollbars for specific containers */
        .custom-scroll::-webkit-scrollbar,
        .profile-scroll::-webkit-scrollbar {
            display: none;
        }
        .custom-scroll, .profile-scroll {
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
