:root {
    --bg-color: #0b0c10;
    --panel-bg: rgba(31, 40, 51, 0.85);
    --neon-blue: #66fcf1;
    --neon-green: #45a29e;
    --text-primary: #ffffff;
    --text-secondary: #c5c6c7;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    background: var(--bg-color);
    /* Spacey grid background */
    background-image: 
        linear-gradient(rgba(102, 252, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 252, 241, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    height: 100vh;
}

/* Reusable Panel Style */
.panel {
    background: var(--panel-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
    backdrop-filter: blur(5px);
}

/* Top Bar */
#top-bar {
    height: 35px;
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.25);
    color: #fff;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 2px 10px rgba(102,252,241,0.2);
    z-index: 1000;
}

#os-name {
    font-weight: 700;
    color: var(--neon-blue);
}

#clock {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

#top-right {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
}

/* Dock */
#dock-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 900;
}

#dock {
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.dock-separator {
    width: 2px;
    height: 40px;
    background: var(--neon-blue);
    opacity: 0.5;
    margin: 0 5px;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.dock-item:hover {
    transform: translateY(-8px);
}

.dock-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    border: 2px solid white;
}

.apollo-icon {
    background: #1f2833;
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.welcome-icon {
    background: #1f2833;
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Notes Pro Max */
.notes-container {
    display: flex;
    height: calc(100% - 40px); /* Fill rest of window */
    background: #1e1e1e; /* macOS dark mode feel */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.notes-sidebar {
    width: 200px;
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid #333;
    border-bottom-left-radius: 10px;
    display: flex;
    flex-direction: column;
}

.notes-sidebar-title {
    padding: 15px;
    font-weight: 600;
    color: #a1a1a6;
    font-size: 13px;
    text-transform: uppercase;
}

.notes-list {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    overflow-y: auto;
}

.notes-list li {
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notes-list li.active-note {
    background: #e4a11b; /* macOS Notes yellow accent */
    color: #000;
    font-weight: 600;
}

.notes-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-bottom-right-radius: 10px;
}

.notes-toolbar {
    height: 40px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: flex-end;
    gap: 10px;
}

.notes-btn {
    background: transparent;
    border: none;
    color: #a1a1a6;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    padding: 5px;
}

.notes-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notes-editor {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    outline: none;
    font-family: inherit;
}

.dock-item span {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    bottom: -25px;
    background: #000;
    padding: 2px 6px;
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
}

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

/* Start Menu */
#start-menu {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    border-radius: 10px;
    padding: 10px;
    z-index: 1000;
}

.menu-header {
    font-size: 14px;
    color: var(--neon-blue);
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 1px solid var(--text-secondary);
    margin-bottom: 5px;
}

#start-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#start-menu li {
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

#start-menu li:hover {
    background: rgba(102, 252, 241, 0.2);
    color: var(--neon-blue);
}

#start-menu li.danger:hover {
    background: rgba(255, 0, 0, 0.5);
    color: white;
}

#start-menu li.menu-label {
    font-size: 12px;
    color: var(--text-secondary);
    pointer-events: none;
    padding-bottom: 5px;
    letter-spacing: 1px;
}

#start-menu li.menu-divider {
    height: 1px;
    background: var(--text-secondary);
    margin: 5px 0;
    padding: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Desktop Icons */
.desktop-icon {
    position: absolute;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    box-sizing: border-box;
}

/* Positioning them initially */
#icon-welcome { top: 60px; left: 20px; }
#icon-terminal { top: 160px; left: 20px; }
#icon-notes { top: 260px; left: 20px; }
#icon-browser { top: 60px; left: 110px; }
#icon-paint { top: 160px; left: 110px; }
#icon-pong { top: 260px; left: 110px; }
#icon-settings { top: 360px; left: 20px; }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.settings-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--neon-blue);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-weight: bold;
    color: var(--text-primary);
}
.settings-card:hover {
    background: var(--neon-blue);
    color: #000;
}

.desktop-icon:hover {
    background: rgba(102, 252, 241, 0.2);
    border-radius: 8px;
}

.desktop-icon .icon-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    border: 2px solid white;
    margin-bottom: 5px;
    pointer-events: none;
}

.welcome-icon-img {
    background: #1f2833;
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.terminal-icon-img {
    background: #1f2833;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    padding: 0;
    overflow: hidden;
}

.notes-icon-img {
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: white;
    box-shadow: 0 0 10px #fde047;
}

.desktop-icon span {
    font-size: 12px;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    text-align: center;
    pointer-events: none;
    user-select: none;
    font-weight: bold;
}

/* Shutdown Screen */
#shutdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s;
}

.power-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1f2833;
    border: 4px solid var(--neon-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 20px var(--neon-blue);
    transition: all 0.3s;
}

.power-btn:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 40px var(--neon-blue);
    transform: scale(1.1);
}

.power-icon {
    font-size: 50px;
    color: var(--neon-green);
    font-family: sans-serif;
    text-shadow: 0 0 10px var(--neon-green);
}

.power-btn:hover .power-icon {
    color: #0b0c10;
    text-shadow: none;
}

/* Window */
.window {
    position: absolute;
    top: 80px;
    left: 50px;
    width: 600px;
    max-width: 90vw;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    resize: both;
    min-width: 300px;
    min-height: 200px;
}

.window-header {
    height: 40px;
    background: linear-gradient(90deg, #1f2833, #0b0c10);
    border-bottom: 2px solid var(--neon-blue);
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: grab; /* Shows it's draggable */
}

.window-header:active {
    cursor: grabbing;
}

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

.win-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
}

.win-btn.close { background: #ff5f56; }
.win-btn.min { background: #ffbd2e; }
.win-btn.max { background: #27c93f; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--neon-blue);
}

.spacer { flex: 1; }

.window-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glow-text {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
}

.subtitle {
    color: var(--neon-green);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: bold;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--neon-blue);
    border-radius: 5px;
    box-shadow: 0 0 15px var(--neon-blue);
}

.link-container {
    margin: 25px 0;
}

.cool-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    background: #1f2833;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(69,162,158,0.5);
}

.cool-btn:hover {
    background: var(--neon-green);
    color: #0b0c10;
    box-shadow: 0 0 20px var(--neon-green);
    transform: scale(1.05);
}

.description {
    text-align: center;
    color: var(--text-primary);
    font-size: 15px;
    max-width: 80%;
    line-height: 1.6;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--neon-blue);
}

/* Terminal specific styles */
.terminal-content {
    background-color: #050505;
    color: #33ff33; /* Classic hacker green */
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    padding: 10px;
    height: calc(100% - 40px); /* Fill the rest of the window minus header */
    overflow-y: auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: left;
    box-sizing: border-box;
}

.terminal-text p {
    margin: 0 0 5px 0;
    padding: 0;
}

.terminal-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: #33ff33;
    margin-right: 8px;
    font-weight: bold;
}

.command-input {
    color: #fff;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
    flex: 1;
    width: 100%;
}

#terminal-output {
    display: flex;
    flex-direction: column;
}

.terminal-output-line {
    margin-bottom: 5px;
}

.secret-message {
    color: #66fcf1;
    font-weight: bold;
    text-shadow: 0 0 5px #66fcf1;
}

.ascii-art {
    white-space: pre;
    font-family: 'JetBrains Mono', monospace;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    line-height: 1.2;
}
