        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #1EB980;
            --primary-dark: #18a872;
            --background: #201A1A;
            --surface: #2a2323;
            --surface-variant: #3a3232;
            --studio-bg: #1e1e1e;
            --studio-surface: #252526;
            --studio-border: #2d2d2d;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--studio-bg);
            color: #d4d4d4;
            overflow: hidden;
            height: 100vh;
        }

        /* Welcome Screen */
        .boot-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #1e1e1e;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            transition: opacity 0.5s ease;
            padding: 1rem;
        }

        .boot-screen.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .welcome-window {
            width: 100%;
            max-width: 900px;
            height: 90%;
            max-height: 650px;
            background: #2b2b2b;
            border-radius: 8px;
            box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .welcome-header {
            padding: 1.5rem 2rem;
            background: #2b2b2b;
            display: flex;
            align-items: center;
            gap: 1.25rem;
            border-bottom: 1px solid #3c3c3c;
            flex-shrink: 0;
        }

        .welcome-icon {
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse 2s infinite;
            flex-shrink: 0;
        }

        .welcome-title-section {
            flex: 1;
            min-width: 0;
        }

        .welcome-title {
            font-size: 1.5rem;
            color: #e8eaed;
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        .welcome-version {
            color: #858585;
            font-size: 0.85rem;
            margin: 0.25rem 0 0 0;
        }

        .welcome-content {
            display: flex;
            flex: 1;
            overflow: hidden;
            min-height: 0;
        }

        .welcome-sidebar {
            width: 140px;
            background: #252526;
            border-right: 1px solid #3c3c3c;
            padding: 0.75rem 0;
            flex-shrink: 0;
        }

        .welcome-menu-item {
            padding: 0.65rem 1.25rem;
            color: #c9d1d9;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .welcome-menu-item:hover {
            background: #2d2d2d;
        }

        .welcome-menu-item.active {
            background: #094771;
            color: #fff;
            font-weight: 600;
            border-left: 3px solid #007acc;
        }

        .welcome-main {
            flex: 1;
            padding: 1.5rem 2rem;
            overflow-y: auto;
            background: #2b2b2b;
            min-width: 0;
        }

        .welcome-actions {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .welcome-search {
            flex: 1;
            min-width: 150px;
            padding: 0.65rem 1rem;
            background: #3c3c3c;
            border: 1px solid #4a4a4a;
            border-radius: 4px;
            color: #e8eaed;
            font-size: 0.85rem;
            font-family: 'Poppins', sans-serif;
            outline: none;
            transition: border-color 0.2s;
        }

        .welcome-search::placeholder {
            color: #6e6e6e;
        }

        .welcome-search:focus {
            border-color: #007acc;
            background: #3e3e3e;
        }

        .welcome-btn {
            padding: 0.65rem 1.75rem;
            background: #007acc;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.85rem;
            transition: all 0.2s;
            font-family: 'Poppins', sans-serif;
            white-space: nowrap;
        }

        .welcome-btn:hover {
            background: #1177bb;
        }

        .welcome-btn:active {
            transform: scale(0.97);
        }

        .recent-projects {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .project-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: #323233;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .project-item:hover {
            background: #3a3a3b;
            border-color: #4a4a4a;
        }

        .project-item.highlighted {
            background: #0d4d7d;
            border-color: #0e639c;
        }

        .project-item.highlighted:hover {
            background: #0a5a8a;
        }

        .project-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #3DDC84, #2fa866);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .project-info {
            flex: 1;
            min-width: 0;
        }

        .project-name {
            color: #e8eaed;
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
        }

        .project-path {
            color: #858585;
            font-size: 0.8rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .project-branch {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: #8b949e;
            font-size: 0.75rem;
            margin-top: 0.35rem;
        }

        .welcome-footer {
            padding: 0.65rem 1.5rem;
            background: #252526;
            border-top: 1px solid #3c3c3c;
            display: flex;
            justify-content: flex-start;
            flex-shrink: 0;
        }

        .welcome-settings {
            width: 34px;
            height: 34px;
            background: transparent;
            border: 1px solid #4a4a4a;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: #858585;
        }

        .welcome-settings:hover {
            background: #3c3c3c;
            border-color: #007acc;
            color: #e8eaed;
        }

        /* Main Layout */
        .studio-container {
            display: flex;
            height: 100vh;
            flex-direction: column;
        }

        /* Top Menu Bar */
        .menu-bar {
            background: #3c3c3c;
            height: 40px;
            display: flex;
            align-items: center;
            padding: 0 1rem;
            border-bottom: 1px solid var(--studio-border);
            gap: 1rem;
        }

        .menu-item {
            color: #d4d4d4;
            padding: 0.5rem 1rem;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 0.9rem;
        }

        .menu-item:hover {
            background: #505050;
        }

        .menu-with-submenu {
            position: relative;
        }

        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #3c3c3c;
            border: 1px solid var(--studio-border);
            min-width: 250px;
            max-width: 350px;
            max-height: 70vh;
            overflow-y: auto;
            box-shadow: 0 4px 12px rgba(0,0,0,0.4);
            z-index: 1000;
        }

        .submenu.active {
            display: block;
        }

        .submenu-item {
            padding: 0.5rem 1rem;
            color: #d4d4d4;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 0.85rem;
        }

        .submenu-item:hover {
            background: #505050;
        }

        .submenu-section {
            padding: 0.5rem 0;
        }

        .submenu-title {
            padding: 0.5rem 1rem;
            color: var(--primary);
            font-weight: 600;
            font-size: 0.85rem;
        }

        .submenu-divider {
            height: 1px;
            background: var(--studio-border);
            margin: 0.25rem 0;
        }

        .mobile-toggle {
            display: none;
            color: var(--primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }

        /* Mobile Overlay Menu */
        .mobile-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            backdrop-filter: blur(4px);
        }

        .mobile-overlay.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .mobile-menu {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--studio-surface);
            border-radius: 12px;
            padding: 2rem;
            width: 85%;
            max-width: 350px;
            max-height: 70vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            animation: slideUp 0.3s ease;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--studio-border);
        }

        .mobile-menu-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
            font-family: 'Montserrat', sans-serif;
        }

        .mobile-menu-close {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--studio-border);
            border-radius: 50%;
            cursor: pointer;
            color: #858585;
            font-size: 1.2rem;
            transition: all 0.2s;
        }

        .mobile-menu-close:hover {
            background: var(--primary);
            color: white;
        }

        .mobile-menu-item {
            padding: 1rem;
            margin: 0.5rem 0;
            background: var(--studio-bg);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border: 1px solid transparent;
        }

        .mobile-menu-item:hover {
            background: var(--studio-border);
            border-color: var(--primary);
            transform: translateX(4px);
        }

        .mobile-menu-item svg {
            width: 20px;
            height: 20px;
            fill: var(--primary);
        }

        .mobile-menu-text {
            flex: 1;
        }

        .mobile-menu-label {
            color: #d4d4d4;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .mobile-menu-desc {
            color: #858585;
            font-size: 0.75rem;
            margin-top: 0.15rem;
        }

        /* Mobile Overlay Menu */
        .mobile-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            backdrop-filter: blur(4px);
        }

        .mobile-overlay.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .mobile-menu {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--studio-surface);
            border-radius: 12px;
            padding: 2rem;
            width: 85%;
            max-width: 350px;
            max-height: 70vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            animation: slideUp 0.3s ease;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--studio-border);
        }

        .mobile-menu-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
            font-family: 'Montserrat', sans-serif;
        }

        .mobile-menu-close {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--studio-border);
            border-radius: 50%;
            cursor: pointer;
            color: #858585;
            font-size: 1.2rem;
            transition: all 0.2s;
        }

        .mobile-menu-close:hover {
            background: var(--primary);
            color: white;
        }

        .mobile-menu-item {
            padding: 1rem;
            margin: 0.5rem 0;
            background: var(--studio-bg);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border: 1px solid transparent;
        }

        .mobile-menu-item:hover {
            background: var(--studio-border);
            border-color: var(--primary);
            transform: translateX(4px);
        }

        .mobile-menu-item svg {
            width: 20px;
            height: 20px;
            fill: var(--primary);
        }

        .mobile-menu-text {
            flex: 1;
        }

        .mobile-menu-label {
            color: #d4d4d4;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .mobile-menu-desc {
            color: #858585;
            font-size: 0.75rem;
            margin-top: 0.15rem;
        }

        .studio-title {
            margin-left: auto;
            color: var(--primary);
            font-weight: 600;
            font-family: 'Montserrat', sans-serif;
        }

        /* Main Content Area */
        .content-area {
            display: flex;
            flex: 1;
            overflow: hidden;
            align-items: stretch;
        }

        /* Left Sidebar - Project Explorer */
        .project-explorer {
            width: 280px;
            background: var(--studio-surface);
            border-right: 1px solid var(--studio-border);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            align-self: stretch;
        }

        .explorer-header {
            padding: 0.5rem 1rem;
            background: var(--studio-surface);
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--primary);
            border-bottom: 1px solid var(--studio-border);
            flex-shrink: 0;
        }

        .file {
            padding: 0.5rem 1rem 0.5rem 1.5rem;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-left: 2px solid transparent;
        }

        .file svg {
            width: 16px;
            height: 16px;
            fill: #858585;
        }

        .file:hover {
            background: var(--studio-border);
        }

        .file.active {
            background: var(--studio-bg);
            color: #d4d4d4;
            border-left-color: var(--primary);
        }

        .file.active svg {
            fill: var(--primary);
        }

        /* Center - Code Editor */
        .editor-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--studio-bg);
            min-width: 0;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .editor-area.compressed {
            flex: 0.5;
            min-width: 300px;
        }

        .editor-tabs {
            background: var(--studio-surface);
            display: flex;
            gap: 0.25rem;
            padding: 0.25rem 0.5rem;
            border-bottom: 1px solid var(--studio-border);
            overflow-x: auto;
            flex-shrink: 0;
        }

        .editor-tab {
            padding: 0.5rem 1rem;
            background: var(--studio-bg);
            cursor: pointer;
            font-size: 0.85rem;
            border-radius: 4px 4px 0 0;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
            position: relative;
            color: #858585;
        }

        .editor-tab:hover {
            background: var(--studio-surface);
            color: #d4d4d4;
        }

        .editor-tab.active {
            background: var(--studio-bg);
            color: #d4d4d4;
            border-bottom: 2px solid var(--primary);
        }

        .tab-close {
            opacity: 0.6;
            transition: opacity 0.2s;
            cursor: pointer;
            padding: 0 0.25rem;
        }

        .tab-close:hover {
            opacity: 1;
            color: #f48771;
        }

        .editor-content {
            flex: 1;
            padding: 1.5rem;
            overflow-y: auto;
            font-family: 'JetBrains Mono', 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 1.8;
            scroll-behavior: smooth;
        }

        .editor-content::-webkit-scrollbar,
        .terminal-content::-webkit-scrollbar,
        .welcome-main::-webkit-scrollbar {
            width: 12px;
        }

        .editor-content::-webkit-scrollbar-track,
        .terminal-content::-webkit-scrollbar-track,
        .welcome-main::-webkit-scrollbar-track {
            background: var(--studio-bg);
        }

        .editor-content::-webkit-scrollbar-thumb,
        .terminal-content::-webkit-scrollbar-thumb,
        .welcome-main::-webkit-scrollbar-thumb {
            background: #3c3c3c;
            border-radius: 6px;
        }

        .editor-content::-webkit-scrollbar-thumb:hover,
        .terminal-content::-webkit-scrollbar-thumb:hover,
        .welcome-main::-webkit-scrollbar-thumb:hover {
            background: #4a4a4a;
        }

        .code-line {
            display: flex;
            gap: 2rem;
            transition: background 0.2s;
            padding: 0 0.5rem;
            margin: 0 -0.5rem;
            border-radius: 4px;
        }

        .code-line:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .line-number {
            color: #858585;
            user-select: none;
            min-width: 35px;
            text-align: right;
        }

        .code-text {
            flex: 1;
            white-space: pre;
        }

        .keyword { color: #569cd6; font-weight: 500; }
        .string { color: #ce9178; }
        .comment { color: #6a9955; font-style: italic; }
        .function { color: #dcdcaa; }
        .class-name { color: #4ec9b0; }
        .variable { color: #9cdcfe; }
        .operator { color: #d4d4d4; }
        .annotation { color: #569cd6; }

        /* Right Side - Device Preview */
        .device-preview {
            width: 420px;
            min-width: 420px;
            background: var(--studio-bg);
            border-left: 1px solid var(--studio-border);
            display: flex;
            flex-direction: column;
            align-self: stretch;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .device-preview.expanded {
            width: 800px;
            min-width: 800px;
        }

        .device-header {
            padding: 0.75rem 1rem;
            background: var(--studio-bg);
            border-bottom: 1px solid var(--studio-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }

        .device-name {
            font-size: 0.85rem;
            color: #d4d4d4;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .device-name svg {
            width: 16px;
            height: 16px;
            fill: var(--primary);
        }

        .device-controls {
            display: flex;
            gap: 0.5rem;
        }

        .device-control-btn {
            width: 28px;
            height: 28px;
            background: transparent;
            border: 1px solid var(--studio-border);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .device-control-btn svg {
            width: 14px;
            height: 14px;
            fill: #858585;
        }

        .device-control-btn:hover {
            background: var(--studio-surface);
            border-color: var(--primary);
        }

        .device-control-btn:hover svg {
            fill: var(--primary);
        }

        .device-control-btn.active {
            background: var(--primary);
            border-color: var(--primary);
        }

        .device-control-btn.active svg {
            fill: white;
        }

        .device-control-btn.muted {
            background: #3c3c3c;
            border-color: #3c3c3c;
        }

        .device-control-btn.muted svg {
            fill: #858585;
        }

        .device-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1.5rem;
            overflow-y: auto;
            background: var(--studio-bg);
        }

        .device-frame {
            width: 340px;
            height: 680px;
            background: #0a0a0a;
            border-radius: 25px;
            padding: 35px 15px 35px 15px;
            box-shadow: 0 10px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
            border: 2px solid #1a1a1a;
            position: relative;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .device-notch {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 20px;
            background: #0a0a0a;
            border-radius: 0 0 12px 12px;
            z-index: 10;
        }

        .device-screen {
            width: 100%;
            height: 100%;
            background: var(--background);
            border-radius: 8px;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: opacity 0.2s ease;
        }

        .device-screen::-webkit-scrollbar {
            display: none;
        }

        .device-screen {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Emulator Website Content */
        .emulator-page {
            display: none;
            flex: 1;
            overflow-y: auto;
            padding-bottom: 90px;
            animation: fadeIn 0.4s ease-out;
        }

        .emulator-page::-webkit-scrollbar {
            display: none;
        }

        .emulator-page {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .emulator-page.active {
            display: flex;
            flex-direction: column;
        }

        .emu-nav {
            display: none;
        }

        .emu-content {
             padding: 1rem 1.5rem 6rem 1.5rem;  /* Reduced top padding from 1.5rem */
        
        }

        .loading-indicator {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
        }

        .loading-indicator.active {
            display: block;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(30, 185, 128, 0.2);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }

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

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        @keyframes countUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .loading-text {
            color: var(--primary);
            text-align: center;
            margin-top: 1rem;
            font-size: 0.9rem;
            font-weight: 600;
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--studio-surface);
            color: #d4d4d4;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--primary);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            display: none;
            align-items: center;
            gap: 0.75rem;
            z-index: 10000;
            animation: slideInRight 0.3s ease-out;
        }

        .toast.show {
            display: flex;
        }

        .toast.success {
            border-color: var(--primary);
        }

        .toast.error {
            border-color: #f48771;
        }

        .toast-icon {
            font-size: 1.2rem;
        }

        .toast-message {
            font-size: 0.9rem;
        }

        /* Keyboard Shortcuts Hint */
        .kbd {
            background: var(--studio-border);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            border: 1px solid #3c3c3c;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        /* Cursor Blink */
        .terminal-cursor {
            display: inline-block;
            width: 8px;
            height: 16px;
            background: var(--primary);
            margin-left: 2px;
            animation: blink 1s infinite;
        }

        /* Stats Counter Animation */
        .emu-stat-value.counting {
            animation: countUp 0.6s ease-out;
        }

        /* Smooth Transitions */
        * {
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Focus Styles for Accessibility */
        *:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        button:focus-visible,
        .menu-item:focus-visible,
        .file:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* Minimap Indicator */
        .editor-minimap {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 100px;
            background: rgba(0, 0, 0, 0.2);
            border-left: 1px solid var(--studio-border);
            display: none;
        }

        @media (min-width: 1400px) {
            .editor-area {
                position: relative;
            }
            
            .editor-minimap {
                display: block;
            }
        }

        /* Floating Action Button */
        .fab {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), #4ec9b0);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(30, 185, 128, 0.5);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
            border: none;
        }

        .fab svg {
            width: 28px;
            height: 28px;
            fill: white;
        }

        .fab:hover {
            transform: scale(1.15);
            box-shadow: 0 6px 30px rgba(30, 185, 128, 0.7);
        }

        .fab:active {
            transform: scale(0.95);
        }

        /* Progress Bar */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), #4ec9b0);
            z-index: 10001;
            transition: width 0.3s ease;
        }

        /* Command Palette */
        .command-palette {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--studio-surface);
            border: 1px solid var(--studio-border);
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 500px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            z-index: 10000;
            animation: slideInRight 0.3s ease-out;
            overflow: hidden;
        }

        .command-palette.active {
            display: flex;
            flex-direction: column;
        }

        .command-palette-input {
            width: 100%;
            padding: 1.5rem;
            background: var(--studio-bg);
            border: none;
            border-bottom: 1px solid var(--studio-border);
            color: #d4d4d4;
            font-size: 1.1rem;
            font-family: 'Poppins', sans-serif;
            outline: none;
        }

        .command-palette-input::placeholder {
            color: #858585;
        }

        .command-palette-results {
            flex: 1;
            overflow-y: auto;
            padding: 0.5rem;
        }

        .command-palette-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            border-radius: 6px;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.2s;
        }

        .command-palette-item:hover,
        .command-palette-item.selected {
            background: var(--studio-border);
        }

        .command-palette-icon {
            width: 32px;
            height: 32px;
            background: var(--primary);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
        }

        .command-palette-icon svg {
            width: 18px;
            height: 18px;
            fill: white;
        }

        .command-palette-text {
            flex: 1;
        }

        .command-palette-name {
            color: #d4d4d4;
            font-weight: 500;
        }

        .command-palette-desc {
            color: #858585;
            font-size: 0.8rem;
        }

        .command-palette-shortcut {
            color: #858585;
            font-size: 0.8rem;
            font-family: 'JetBrains Mono', monospace;
        }

        /* Particle Background */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            opacity: 0.3;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: var(--primary);
            border-radius: 50%;
            animation: float 10s infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
        }

        /* Skeleton Loader */
        .skeleton {
            background: linear-gradient(90deg, var(--studio-border) 25%, var(--studio-surface) 50%, var(--studio-border) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 4px;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-card {
            height: 120px;
            margin-bottom: 1rem;
        }

        /* Easter Egg - Konami Code */
        .konami-active .studio-container {
            animation: rainbow 5s infinite;
        }

        @keyframes rainbow {
            0% { filter: hue-rotate(0deg); }
            100% { filter: hue-rotate(360deg); }
        }

        /* Scroll to Top Button */
        .scroll-top {
            position: fixed;
            bottom: 150px;
            right: 30px;
            width: 48px;
            height: 48px;
            background: var(--studio-surface);
            border: 1px solid var(--primary);
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
            z-index: 998;
        }

        .scroll-top.show {
            display: flex;
        }

        .scroll-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 12px rgba(30, 185, 128, 0.4);
        }

        /* Command History */
        .command-history {
            max-height: 200px;
            overflow-y: auto;
        }

        /* Auto-complete Suggestion */
        .autocomplete-suggestion {
            background: var(--studio-border);
            padding: 0.5rem 1rem;
            margin-top: 0.5rem;
            border-radius: 4px;
            color: #858585;
            font-size: 0.85rem;
            display: none;
        }

        .autocomplete-suggestion.show {
            display: block;
        }

        .autocomplete-suggestion span {
            color: var(--primary);
            cursor: pointer;
        }

        .autocomplete-suggestion span:hover {
            text-decoration: underline;
        }

        /* Context Menu */
        .context-menu {
            position: fixed;
            background: var(--studio-surface);
            border: 1px solid var(--studio-border);
            border-radius: 6px;
            padding: 0.5rem 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            z-index: 10000;
            display: none;
            min-width: 200px;
        }

        .context-menu.show {
            display: block;
        }

        .context-menu-item {
            padding: 0.5rem 1rem;
            cursor: pointer;
            color: #d4d4d4;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transition: background 0.2s;
        }

        .context-menu-item svg {
            width: 18px;
            height: 18px;
            fill: var(--primary);
        }

        .context-menu-item:hover {
            background: var(--studio-border);
        }

        .context-menu-divider {
            height: 1px;
            background: var(--studio-border);
            margin: 0.25rem 0;
        }

        /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            top: 60px;
            right: 30px;
            width: 48px;
            height: 48px;
            background: var(--studio-surface);
            border: 1px solid var(--studio-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s;
            z-index: 999;
        }

        .theme-toggle:hover {
            transform: rotate(180deg);
            border-color: var(--primary);
        }

        /* Live Activity Indicator */
        .live-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.25rem 0.75rem;
            background: rgba(30, 185, 128, 0.1);
            border: 1px solid var(--primary);
            border-radius: 12px;
            font-size: 0.75rem;
            color: var(--primary);
        }

        .live-dot {
            width: 6px;
            height: 6px;
            background: var(--primary);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .emu-section-title {
            font-size: 1.5rem;
            color: #d4d4d4;
            margin-bottom: 1.5rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            text-align: left;
            padding-top: 0.5rem;
            padding-left: 0.5rem;
            border-left: 3px solid var(--primary);
        }

        .emu-card {
            background: var(--surface);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(30, 185, 128, 0.2);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
			z-index: 1;
        }

        .emu-card.light-mode {
            background: #ffffff;
            border-color: rgba(30, 185, 128, 0.3);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .emu-card.light-mode .emu-card-title {
            color: #1a1a1a;
        }

        .emu-card.light-mode .emu-card-text {
            color: #333333;
        }

        .emu-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, transparent 0%, rgba(30, 185, 128, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.3s;
			pointer-events: none;
        }

        .emu-card:hover::before {
            opacity: 1;
        }

        .emu-card:hover {
            transform: translateY(-4px);
            border-color: var(--primary);
            box-shadow: 0 8px 24px rgba(30, 185, 128, 0.3);
        }

        .emu-card:active {
            transform: translateY(-2px);
        }

        .emu-card-title {
            color: #d4d4d4;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .emu-card-title svg {
            width: 18px;
            height: 18px;
            fill: var(--primary);
        }

        .emu-card-text {
            color: #c9d1d9;
            font-size: 0.9rem;
            line-height: 1.6;
			z-index: 15;
        }

        .emu-card-text a {
            position: relative;
            z-index: 2;
            pointer-events: auto;
        }

        .emu-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .emu-stat {
            background: rgba(30, 185, 128, 0.1);
            padding: 0.75rem;
            border-radius: 8px;
            text-align: center;
            border: 1px solid rgba(30, 185, 128, 0.3);
        }

        .emu-stat.light-mode {
            background: rgba(30, 185, 128, 0.15);
            border-color: rgba(30, 185, 128, 0.4);
        }

        .emu-stat-label.light-mode {
            color: #666666;
        }

        .emu-stat-value {
            color: var(--primary);
            font-size: 1.5rem;
            font-weight: 700;
        }

        .emu-stat-label {
            color: #858585;
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }

        .emu-skill-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .emu-skill {
            background: var(--surface);
            padding: 0.75rem;
            border-radius: 8px;
            text-align: center;
            border: 1px solid rgba(30, 185, 128, 0.2);
            font-size: 0.85rem;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .emu-skill:hover {
            border-color: var(--primary);
            background: rgba(30, 185, 128, 0.1);
            transform: translateY(-2px);
        }

        .emu-skill svg {
            width: 14px;
            height: 14px;
            fill: var(--primary);
        }

        .emu-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .emu-input {
            background: var(--surface-variant);
            border: 1px solid rgba(30, 185, 128, 0.2);
            border-radius: 8px;
            padding: 0.75rem;
            color: #e8eaed;
            font-family: 'Poppins', sans-serif;
            font-size: 0.9rem;
			position: relative;
            z-index: 10;
        }

        .emu-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .emu-textarea {
            min-height: 100px;
            resize: vertical;
        }

        .emu-btn {
            background: var(--primary);
            color: white;
            padding: 0.75rem;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
			z-index: 10; 
        }

        .emu-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .emu-btn:active::before {
            width: 300px;
            height: 300px;
        }

        .emu-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(30, 185, 128, 0.4);
        }

        .emu-btn:active {
            transform: translateY(0);
        }

        .emu-btn-outline {
            background: transparent;
            color: var(--primary);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            border: 2px solid var(--primary);
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-block;
            text-align: center;
            margin-top: 1rem;
            position: relative;
            overflow: hidden;
        }

        .emu-btn-outline::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary);
            transition: left 0.3s;
            z-index: -1;
        }

        .emu-btn-outline:hover::before {
            left: 0;
        }

        .emu-btn-outline:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(30, 185, 128, 0.4);
        }

        .emu-social {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .emu-social-link {
            background: var(--surface);
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid rgba(30, 185, 128, 0.2);
            text-decoration: none;
            color: #c9d1d9;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transition: all 0.3s;
			position: relative;
            z-index: 10;
        }

        .emu-social-link:hover {
            border-color: var(--primary);
            transform: translateX(5px);
        }

        .emu-social-icon {
            width: 40px;
            height: 40px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: absolute;
            bottom: 8px;
            left: 8px;
            right: 8px;
            background: rgba(42, 35, 35, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(30, 185, 128, 0.3);
            border: 1px solid rgba(30, 185, 128, 0.2);
            display: flex;
            justify-content: space-around;
            padding: 0.75rem 0.5rem 0.5rem 0.5rem;
            z-index: 200;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0.5rem 0.75rem;
            border-radius: 12px;
            flex: 1;
            max-width: 80px;
            position: relative;
            overflow: hidden;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(30, 185, 128, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.4s, height 0.4s;
        }

        .nav-item:active::before {
            width: 100%;
            height: 100%;
        }

        .nav-item:hover {
            background: rgba(30, 185, 128, 0.15);
            transform: scale(1.05);
        }

        .nav-item.active {
            color: #fff;
            background: rgba(30, 185, 128, 0.2);
        }

        .nav-item.active .nav-icon {
            color: #fff;
            animation: pulse 2s infinite;
        }

        .nav-item .nav-icon {
            color: var(--primary);
        }

        .nav-icon {
            font-size: 1.3rem;
            transition: transform 0.3s;
        }

        .nav-item.active .nav-icon {
            transform: scale(1.1);
        }

        .nav-label {
            font-size: 0.65rem;
            font-weight: 500;
        }

        /* Bottom Terminal/Build */
        .terminal-panel {
            height: 280px;
            background: #1e1e1e;
            border-top: 1px solid var(--studio-border);
            display: flex;
            flex-direction: column;
        }

        .terminal-header {
            background: var(--studio-border);
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            cursor: pointer;
        }

        .terminal-tab {
            color: #858585;
            font-weight: 400;
            cursor: pointer;
            padding: 0.5rem 0;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .terminal-tabs {
            background: #1e1e1e;
            padding: 0.5rem 1rem 0;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            border-bottom: 1px solid #2d2d2d;
        }

        .terminal-tab.active {
            color: #d4d4d4;
            border-bottom-color: #007acc;
        }

        .terminal-tab:hover {
            color: #d4d4d4;
        }

        .terminal-content {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            display: none;
        }

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

        .terminal-line {
            color: #d4d4d4;
            margin-bottom: 0.25rem;
        }

        .terminal-success {
            color: #4ec9b0;
        }

        .terminal-error {
            color: #f48771;
        }

        /* Modal/Popup */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--studio-surface);
            border-radius: 8px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            border: 1px solid var(--studio-border);
        }

        .about-modal-content {
            max-width: 600px;
        }

        .about-header {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .about-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #4285f4, #34a853);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2.5rem;
        }

        .about-info {
            flex: 1;
        }

        .about-version {
            font-size: 1.2rem;
            color: #d4d4d4;
            margin-bottom: 0.5rem;
        }

        .about-build {
            font-size: 0.85rem;
            color: #858585;
        }

        .about-details {
            background: var(--studio-bg);
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            color: #c9d1d9;
            line-height: 1.8;
        }

        .about-footer {
            text-align: center;
            font-size: 0.85rem;
            color: #858585;
            margin-top: 1rem;
        }

        .about-footer a {
            color: #569cd6;
            text-decoration: none;
        }

        .modal-buttons {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 1.5rem;
        }

        .modal-btn {
            padding: 0.5rem 1.5rem;
            border-radius: 4px;
            border: 1px solid var(--studio-border);
            background: var(--studio-bg);
            color: #d4d4d4;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .modal-btn:hover {
            background: var(--studio-border);
        }

        .modal-btn.primary {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .modal-btn.primary:hover {
            background: var(--primary-dark);
        }

        .modal-title {
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        .modal-close {
            float: right;
            color: #858585;
            cursor: pointer;
            font-size: 1.5rem;
        }

        .modal-close:hover {
            color: #f48771;
        }

        .command-list {
            list-style: none;
            padding: 0;
        }

        .command-item {
            padding: 0.75rem;
            margin-bottom: 0.5rem;
            background: var(--studio-bg);
            border-radius: 4px;
            border-left: 3px solid var(--primary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .command-item:hover {
            background: var(--studio-border);
            transform: translateX(5px);
        }

        .command-name {
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .command-desc {
            color: #858585;
            font-size: 0.85rem;
        }

        /* Build Window */
        .build-window {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 350px;
            background: var(--studio-bg);
            border-top: 2px solid var(--primary);
            z-index: 1000;
            flex-direction: column;
        }

        .build-window.active {
            display: flex;
        }

        .build-header {
            background: var(--studio-border);
            padding: 0.5rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #3c3c3c;
        }

        .build-title {
            color: var(--primary);
            font-weight: 600;
        }

        .build-close {
            cursor: pointer;
            color: #858585;
        }

        .build-close:hover {
            color: #f48771;
        }

        .build-content {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
        }

        /* Responsive */
        @media (max-width: 1024px) {
			.content-area {
                height: calc(100vh - 50px);  /* Account for header when visible */
                overflow: hidden;
            }

            .editor-area {
                display: none;
            }

            .project-explorer {
                display: none;
            }

            .mobile-toggle {
                display: block;
            }

            .menu-item:not(.mobile-toggle) {
                display: none;
            }

            .device-preview {
                width: 100%;
                min-width: unset;
				height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
            }

            .device-container {
                padding: 0.5rem 0.5rem 110px 0.5rem;
        height: 100%;
            }
			
			/* Adjust when terminal visible */
    body:has(.terminal-panel:not(.hidden)) .device-container {
        padding-bottom: 0.5rem;
    }

            .device-frame {
                margin: 0 auto;
            }

            .device-control-btn[title="Rotate Device"] {
                display: none;
            }

            .welcome-window {
                height: 95%;
                max-height: none;
            }

            .welcome-header {
                padding: 1rem 1.25rem;
            }

            .welcome-icon {
                width: 44px;
                height: 44px;
            }

            .welcome-title {
                font-size: 1.2rem;
            }

            .welcome-version {
                font-size: 0.75rem;
            }

            .welcome-sidebar {
                width: 100px;
            }

            .welcome-menu-item {
                padding: 0.5rem 0.75rem;
                font-size: 0.8rem;
            }

            .welcome-main {
                padding: 1rem;
            }

            .welcome-actions {
                flex-direction: column;
                gap: 0.5rem;
            }

            .welcome-search {
                width: 100%;
            }

            .welcome-btn {
                width: 100%;
                padding: 0.75rem;
            }

            .project-item {
                padding: 0.85rem;
            }

            .project-icon {
                width: 38px;
                height: 38px;
                font-size: 0.9rem;
            }

            .project-name {
                font-size: 0.85rem;
            }

            .project-path {
                font-size: 0.75rem;
            }

            .project-branch {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 768px) {
            .device-frame {
                width: 100%;
                max-width: 340px;
                height: auto;
				min-height: 600px;
                padding-bottom: 20px;
                margin: 0 auto;
				position: relative;
            }

            .device-container {
                padding: 0.5rem;
				height: 100%;
                display: flex;
                align-items: stretch; 
            }
			
			    /* Adjust device container based on terminal visibility */
    .device-container {
        padding-top: 0.5rem;  /* Reduce top padding */
        padding-bottom: 110px;  /* Space for FABs when terminal hidden */
    }


    /* When terminal is visible */
    body:has(.terminal-panel:not(.hidden)) .device-container {
        padding-bottom: 0.5rem;
    }

    body:has(.terminal-panel:not(.hidden)) .device-frame {
        margin-bottom: 260px;  /* Space for terminal */
    }

    /* Make device screen fill available space */
    .device-frame .device-screen {
        height: 100%;
        min-height: 550px;
    }

            .terminal-panel {
                height: 250px;
            }

            .bottom-nav {
                bottom: 5px;
                left: 5px;
                right: 5px;
                border-radius: 8px;
            }

            .menu-bar {
                height: 50px;
            }

            .welcome-sidebar {
                width: 80px;
            }

            .welcome-menu-item {
                padding: 0.5rem;
                font-size: 0.75rem;
                text-align: center;
            }
        }
		
		/* Mobile Menu Bar Improvements */
@media (max-width: 1024px) {
    .menu-bar {
        display: none; /* Hide entire top menu bar on mobile */
    }
    
    .device-header {
        padding: 0.75rem 1rem;
        margin: 0;
    }
    
    .device-name {
        flex: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--studio-surface);
        border: 1px solid var(--studio-border);
        border-radius: 6px;
        cursor: pointer;
        margin-left: 0.5rem;
        color: var(--primary);
        font-size: 1.2rem;
        transition: all 0.2s;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--studio-border);
        border-color: var(--primary);
    }
    
    .terminal-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
		 height: 250px;  /* Fixed height */
        z-index: 999;
        transition: transform 0.3s ease;
    }
	
	 /* Adjust device frame when terminal is visible */
    body:has(.terminal-panel:not(.hidden)) .device-frame {
        margin-bottom: 260px;
    }

    /* Adjust FABs when terminal is visible */
    body:has(.terminal-panel:not(.hidden)) .fab,
    body:has(.terminal-panel:not(.hidden)) .terminal-toggle {
        bottom: 260px;  /* Move above terminal */
    }
    
    .terminal-panel.hidden {
        transform: translateY(100%);
    }
    
    .terminal-toggle {
        position: fixed;
        bottom: 30px;
        left: 20px;
        width: 48px;
        height: 48px;
        background: var(--studio-surface);
        border: 2px solid var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(30, 185, 128, 0.4);
        z-index: 998;
        transition: all 0.3s;
    }
    
    .terminal-toggle:hover {
        transform: scale(1.1);
    }
    
    .terminal-toggle.active {
        background: var(--primary);
        color: white;
    }
}

/* Command Palette Close Button */
.command-palette-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--studio-border);
}

.command-palette-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--studio-border);
    border-radius: 50%;
    cursor: pointer;
    color: #858585;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.command-palette-close:hover {
    background: var(--primary);
    color: white;
}

@media (min-width: 1025px) {
    .terminal-toggle {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}