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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: #0a0a1a;
}

#root {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* CRT Effects */
.crt-screen {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.crt-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0.4;
}

.crt-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 11;
}

/* Glow effects */
.glow-cyan {
    box-shadow: 0 0 10px rgba(0, 255, 245, 0.3), 0 0 30px rgba(0, 255, 245, 0.1);
}

.glow-magenta {
    box-shadow: 0 0 10px rgba(255, 0, 228, 0.3), 0 0 30px rgba(255, 0, 228, 0.1);
}

.glow-text-cyan {
    text-shadow: 0 0 10px rgba(0, 255, 245, 0.5), 0 0 20px rgba(0, 255, 245, 0.3);
}

.glow-text-magenta {
    text-shadow: 0 0 10px rgba(255, 0, 228, 0.5), 0 0 20px rgba(255, 0, 228, 0.3);
}

/* Glassmorphism */
.glass {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 245, 0.1);
}

/* Boot text animation */
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

::-webkit-scrollbar-track {
    background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
    background: #16213e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3460;
}

/* Code editor textarea */
.code-editor {
    background: #0a0a1a;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: none;
    tab-size: 2;
}

.code-editor:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 245, 0.3);
}

/* Monitor bezel */
.monitor-bezel {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39ff14;
    box-shadow: 0 0 6px #39ff14;
    animation: pulse-led 2s infinite;
}

@keyframes pulse-led {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Tab styling */
.tab-active {
    background: #0a0a1a;
    border-bottom: 2px solid #00fff5;
    color: #00fff5;
}

.tab-inactive {
    background: #16213e;
    border-bottom: 2px solid transparent;
    color: #888;
}

.tab-inactive:hover {
    color: #ccc;
    background: #1a2040;
}

/* Neon button */
.btn-neon {
    position: relative;
    padding: 8px 20px;
    border: 1px solid #00fff5;
    color: #00fff5;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.btn-neon:hover {
    background: rgba(0, 255, 245, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 245, 0.3), inset 0 0 15px rgba(0, 255, 245, 0.05);
}

.btn-neon-magenta {
    border-color: #ff00e4;
    color: #ff00e4;
}

.btn-neon-magenta:hover {
    background: rgba(255, 0, 228, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 228, 0.3), inset 0 0 15px rgba(255, 0, 228, 0.05);
}

/* Community card */
.os-card {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(0, 255, 245, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.os-card:hover {
    border-color: rgba(0, 255, 245, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 255, 245, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .code-editor {
        font-size: 11px;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Crash animation */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

.glitch-effect {
    animation: glitch 0.1s infinite;
}

/* App wrapper */
.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Boot screen */
.boot-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: #0a0a1a;
    padding: 16px;
    cursor: pointer;
}

.boot-content {
    width: 100%;
    max-width: 720px;
    max-height: 100%;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .boot-content {
        font-size: 14px;
    }
}