/* EconOS Desktop Aesthetic DNA */

:root {
    --glass-bg: rgba(10, 11, 14, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --terminal-green: #00FF41;
    --terminal-gold: #FFD700;
    --terminal-red: #FF4136;
    --terminal-cyan: #00F5FF;
    --terminal-magenta: #FF00FF;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background: radial-gradient(circle at center, #1a1b24 0%, #0a0b0e 100%);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
}

/* scanline effect for windows */
.window::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.01));
    z-index: 10;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.window {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.window.active {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.9), inset 0 0 10px rgba(0, 245, 255, 0.05);
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid var(--glass-border);
}

.window-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.window.active .window-title {
    color: var(--terminal-cyan);
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.control-btn:hover { opacity: 1; }
.btn-close { background: var(--terminal-red); }
.btn-min { background: var(--terminal-gold); }
.btn-max { background: var(--terminal-green); }

.window-content {
    flex: 1;
    padding: 12px;
    overflow: auto;
    position: relative;
}

/* High-Density Components */
.data-label {
    font-family: var(--font-mono);
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.data-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--terminal-green);
}

.sparkline-container {
    height: 20px;
    width: 60px;
}

@keyframes neon-pulse {
    0% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(0.98); }
}

.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terminal-green);
    animation: neon-pulse 2s infinite ease-in-out;
    box-shadow: 0 0 8px var(--terminal-green);
}

/* Desktop Icons */
#desktop-icons {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    gap: 6px;
    cursor: pointer;
    transition: filter 0.2s;
}

.desktop-icon:hover {
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.4));
}

.desktop-icon i {
    font-size: 32px;
    color: var(--terminal-cyan);
}

.desktop-icon span {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Taskbar */
#taskbar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.task-icon {
    font-size: 20px;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s;
}

.task-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--terminal-cyan);
}

/* Scrollbars */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--terminal-cyan); }
