/* Zenith Shell - Cyber-Violet System Stylesheet */

:root {
    --qos-accent: #b794f4; /* Cyber Violet */
    --qos-accent-amber: #f687b3; /* Nebula Pink */
    --qos-bg-panel: rgba(14, 16, 26, 0.96);
    --qos-border: rgba(255, 255, 255, 0.12);
}

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

body {
    width: 100vw;
    height: 100vh;
    background: #000000;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e2e8f0;
    overflow: hidden;
    user-select: none;
}

/* --- WORKSPACE --- */
.desktop-workspace {
    position: fixed;
    top: 26px;
    left: 0;
    right: 0;
    bottom: 80px;
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 28px;
    z-index: 10;
    transition: background 0.5s ease;
}
.bg-space {
    background-image: url("../assets/wallpapers/nebula.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bg-nebula {
    background-image: url("../assets/wallpapers/planet.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bg-terminal {
    background-image: url("../assets/wallpapers/nebula.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* --- MENU BAR --- */
.mac-menu-bar {
    width: 100%;
    height: 26px;
    background: rgba(12, 14, 22, 0.88);
    border-bottom: 1px solid rgba(183, 148, 244, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
}

.menu-left, .menu-right { display: flex; align-items: center; gap: 16px; }
.menu-item { cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.menu-item:hover { opacity: 1; color: var(--qos-accent); }
.bold { font-weight: bold; }

/* --- SHORTCUTS --- */
.desktop-shortcut {
    width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: grab;
    font-size: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.icon-wrapper {
    width: 54px;
    height: 54px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.desktop-shortcut:hover .icon-wrapper {
    transform: translateY(-3px);
    border-color: var(--qos-accent);
    box-shadow: 0 0 14px rgba(183, 148, 244, 0.4);
}

/* --- WINDOWS --- */
.mac-window {
    position: absolute;
    width: 620px;
    height: 390px;
    top: 15%;
    left: 25%;
    background: rgba(12, 16, 28, 0.88);
    backdrop-filter: blur(18px);
    border: 2px solid rgba(124, 58, 237, 0.45);
    border-radius: 18px;
    box-shadow:
        0 0 25px rgba(124,58,237,.25),
        0 25px 60px rgba(0,0,0,.65);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: center bottom;
}

.mac-window.opening { animation: qos-window-in 0.22s cubic-bezier(.2,.8,.3,1.1); }
.mac-window.closing { animation: qos-window-out 0.16s ease forwards; }
.mac-window.minimizing { animation: qos-window-min 0.22s ease forwards; }

@keyframes qos-window-in {
    0% { opacity: 0; transform: scale(0.92) translateY(14px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes qos-window-out {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.95); }
}
@keyframes qos-window-min {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.5) translateY(220px); }
}

.window-header {
    height: 36px;
  background: linear-gradient(90deg,#1f1147,#2d1b69,#1f1147);
    display: flex;
    align-items: center;
    padding: 0 14px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: move;
}

.window-dots { display: flex; gap: 8px; z-index: 100; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; transition: transform 0.12s ease; }
.dot:hover { transform: scale(1.18); }
.close-btn { background: #ff5f56; }
.min-btn { background: #ffbd2e; }
.max-btn { background: #27c93f; }

.window-title {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.window-body { flex: 1; overflow-y: auto; }

/* --- DOCK --- */
.dock-container {
    position: fixed;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10000;
}

.mac-dock {
    background: rgba(20, 24, 38, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    gap: 12px;
    transition: padding 0.2s ease;
}

.dock-item, .dock-trash-bin {
    width: 50px;
    height: 50px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(.2,.8,.3,1.4), margin 0.15s ease;
}

.dock-item:hover, .dock-trash-bin:hover {
    transform: translateY(-10px) scale(1.28);
    margin: 0 8px;
}

/* --- MODULES: FINDER --- */
.finder-layout { display: flex; height: 100%; }
.finder-sidebar { width: 140px; background: rgba(0, 0, 0, 0.2); border-right: 1px solid rgba(255, 255, 255, 0.05); padding: 12px 6px; }
.finder-content { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-top: 12px; }

.file-item {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.file-item:hover { background: rgba(0, 255, 102, 0.08); color: var(--qos-accent); }
.file-icon { font-size: 26px; }
.file-label { font-size: 11.5px; text-align: center; word-break: break-all; }

/* --- MODULES: TERMINAL --- */
.terminal-body {
    background: #040508;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    height: 100%;
    overflow-y: auto;
}

.glowing-text { color: var(--qos-accent); text-shadow: 0 0 6px rgba(0, 255, 98, 0.4); }

.terminal-input-line { display: flex; gap: 8px; align-items: center; }
.terminal-input-line input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--qos-accent);
    font-family: inherit;
    font-size: 12.5px;
    caret-color: var(--qos-accent-amber);
}

/* --- MODULES: ARCADE --- */
.arcade-layout { display: flex; height: 100%; }
.arcade-sidebar { width: 160px; background: rgba(0, 0, 0, 0.25); border-right: 1px solid rgba(255, 255, 255, 0.06); padding: 14px 8px; display: flex; flex-direction: column; gap: 4px; }
.arcade-nav-item { padding: 10px 14px; font-size: 13px; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.arcade-nav-item.active { background: rgba(183, 148, 244, 0.12); color: var(--qos-accent); border: 1px solid rgba(183, 148, 244, 0.2); }
.arcade-content { flex: 1; padding: 20px; background: #0c0f17; }

/* --- AUTH --- */
.login-screen {
    position: fixed;
    inset: 0;
    background: #05070a;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 340px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
}

.login-logo { font-size: 20px; font-weight: bold; text-align: center; color: var(--qos-accent); }
.login-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    outline: none;
}

.login-submit-btn {
    background: var(--qos-accent);
    color: black;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* --- BOOT --- */
.boot-screen {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.boot-bar-track { width: 240px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.boot-bar-fill { width: 0%; height: 100%; background: var(--qos-accent); transition: width 0.3s; }
.boot-log { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--qos-accent); opacity: 0.7; }

/* --- NOTIFICATIONS --- */
.mac-notification {
    position: fixed;
    top: 40px;
    right: 20px;
    width: 300px;
    background: rgba(20, 24, 38, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(183, 148, 244, 0.2);
    border-radius: 10px;
    z-index: 999999;
    padding: 12px;
}

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 102, 0.3); }
