:root {
    --bg-studio: #f8f9fa;
    --glass-white: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.85);
    --text-dark: #1e2421;
    --text-muted: #64748b;
    --olive-primary: #4a5d4e;
    --olive-hover: #3c4b3f;
    --olive-light: rgba(74, 93, 78, 0.12);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-studio: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 15px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

/* Wallpaper Layer */
#desktop-wallpaper {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: contrast(105%) brightness(95%);
    z-index: 0;
}

#wallpaper-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 249, 250, 0.08);
    /* Soft light overlay */
    backdrop-filter: blur(0px);
    pointer-events: none;
    z-index: 1;
}

/* Top System Bar */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    z-index: 9999;
    font-size: 13px;
    font-weight: 500;
}

.system-title {
    font-weight: 700;
    color: var(--olive-primary);
    margin-right: 12px;
}

.system-status {
    color: var(--text-muted);
    font-size: 12px;
}

.status-badge {
    background: var(--olive-light);
    color: var(--olive-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Canvas Area */
#desktop-canvas {
    position: fixed;
    top: 38px;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 2;
}

/* Floating Glass Dock */
#floating-dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    background: var(--glass-white);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    box-shadow: var(--shadow-studio);
    z-index: 9998;
}

.dock-item {
    position: relative;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--olive-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item:hover {
    background: var(--olive-light);
    transform: translateY(-4px) scale(1.08);
}

.dock-tooltip {
    position: absolute;
    top: -36px;
    background: var(--text-dark);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
}

/* Bottom Left Launcher Button */
#app-launcher-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: #4a5d4e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#app-launcher-btn:hover {
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.1) rotate(20deg);
}

#app-launcher-btn svg {
    width: 26px;
    height: 26px;
    stroke: #4a5d4e;
}

#app-menu {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 350px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    transform-origin: bottom left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#app-menu.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92) translateaY(12px);
}

.menu-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.menu-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.menu-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
}

.app-menu-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.app-menu-card:hover {
    background: #f4f6f4;
    border-color: rgba(74, 93, 78, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.app-icon {
    font-size: 18px;
}

.app-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.app-menu-card * {
    pointer-events: none;
}

.app-svg-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}