:root {
    --bg-color: #050b18;
    --glass-bg: rgba(16, 23, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    --accent-primary: #3b82f6;
    --accent-secondary: #f59e0b;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #050b18 100%);
    position: relative;
    z-index: 1;
}

.root-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10; /* Above any global backgrounds */
}

/* Header & Toggle */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    z-index: 100;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px; height: 30px;
}

.switch input {
    opacity: 0; width: 0; height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1e293b;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px; width: 22px;
    left: 4px; bottom: 4px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-primary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.app-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    z-index: 30;
}

.app-info h3 {
    margin-bottom: 0.2rem;
    color: #fff;
}

/* Logs */
.logs-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.log-window {
    height: 120px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    color: #4ade80;
}
