/* ===== CSS VARIABLES ===== */
:root {
    --bg-dark: #0a0a0f;
    --bg-desktop: #1a1a2e;
    --bg-window: #16213e;
    --bg-titlebar: #0f3460;
    --bg-taskbar: #0d1b2a;
    --accent: #e94560;
    --accent-hover: #ff6b6b;
    --text-primary: #eee;
    --text-secondary: #aaa;
    --text-dim: #666;
    --border-color: #2a2a4a;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #ef4444;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Consolas', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* ===== BOOT SCREEN ===== */
#boot-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.boot-content {
    text-align: center;
}

.boot-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.boot-content h1 {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 10px;
}

.boot-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.boot-progress {
    width: 300px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.boot-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.3s;
}

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

/* ===== MAIN MENU ===== */
#main-menu {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-desktop) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.menu-container {
    text-align: center;
    max-width: 800px;
    padding: 40px;
}

.menu-title {
    font-size: 60px;
    color: var(--accent);
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.menu-subtitle {
    color: var(--text-secondary);
    font-size: 22px;
    margin-bottom: 60px;
    letter-spacing: 3px;
}

.case-files h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 2px;
}

.case-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.case-card {
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    width: 275px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.case-card:hover:not(.locked) {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.case-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.case-number {
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.case-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.case-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.case-difficulty {
    font-size: 11px;
    color: var(--warning);
}

/* ===== DESKTOP ===== */
#desktop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top, #1a1a3e 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-desktop) 0%, var(--bg-dark) 100%);
    padding-bottom: 60px;
}

/* ===== DESKTOP ICONS ===== */
#desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-auto-rows: 112px;
    gap: 12px;
    padding: 25px;
    max-width: 220px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon:active {
    background: rgba(233, 69, 96, 0.2);
}

.icon-image {
    font-size: 45px;
    margin-bottom: 6px;
}

.desktop-icon span {
    font-size: 14px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.desktop-icon.evidence-icon {
    border: 1px dashed var(--accent);
}

/* ===== WINDOWS ===== */
#windows-container {
    position: absolute;
    inset: 0;
    bottom: 48px;
    pointer-events: none;
}

.window {
    position: absolute;
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 500px;
    min-height: 375px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 60px) !important;
    border-radius: 0;
}

.window-titlebar {
    background: var(--bg-titlebar);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    border-bottom: 1px solid var(--border-color);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.window-title-icon {
    font-size: 16px;
}

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

.window-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.window-btn:hover {
    opacity: 0.8;
}

.window-btn.minimize {
    background: var(--warning);
}

.window-btn.maximize {
    background: var(--success);
}

.window-btn.close {
    background: var(--error);
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

/* ===== TASKBAR ===== */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-taskbar);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 8000;
}

#start-button {
    background: linear-gradient(180deg, var(--accent) 0%, #c73e54 100%);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s;
}

#start-button:hover {
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
}

#taskbar-apps {
    flex: 1;
    display: flex;
    gap: 5px;
    padding: 0 15px;
    overflow-x: auto;
}

.taskbar-app {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.15);
}

.taskbar-app.active {
    background: var(--bg-window);
    border-bottom: 2px solid var(--accent);
}

#system-tray {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

#evidence-count {
    color: var(--accent);
    font-weight: bold;
}

#clock {
    font-family: 'Consolas', monospace;
}

/* ===== CASE BRIEFING ===== */
#case-briefing {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9500;
}

.briefing-content {
    background: var(--bg-window);
    border: 1px solid var(--accent);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    overflow: hidden;
}

.briefing-header {
    background: var(--bg-titlebar);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.briefing-badge {
    background: var(--error);
    color: white;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 3px;
    letter-spacing: 2px;
}

.briefing-header h2 {
    margin-top: 15px;
    color: var(--accent);
}

.briefing-body {
    padding: 25px;
    line-height: 1.8;
    font-size: 14px;
    max-height: 400px;
    overflow-y: auto;
}

.briefing-body strong {
    color: var(--accent);
}

.briefing-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.briefing-btn:hover {
    background: var(--accent-hover);
}

/* ===== ACCUSATION MODAL ===== */
#accusation-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9500;
}

.modal-content {
    background: var(--bg-window);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--accent);
    margin-bottom: 15px;
}

.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

#suspect-list {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.suspect-option {
    background: var(--bg-taskbar);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.suspect-option:hover {
    border-color: var(--text-secondary);
}

.suspect-option.selected {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}

.suspect-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.suspect-relation {
    font-size: 12px;
    color: var(--text-secondary);
}

#evidence-selection h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

#collected-evidence {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.evidence-tag {
    background: var(--bg-taskbar);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.evidence-tag:hover {
    border-color: var(--text-secondary);
}

.evidence-tag.selected {
    background: var(--accent);
    border-color: var(--accent);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

#submit-accusation {
    background: var(--accent);
    color: white;
}

#submit-accusation:hover:not(:disabled) {
    background: var(--accent-hover);
}

#submit-accusation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#cancel-accusation {
    background: var(--bg-taskbar);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

#cancel-accusation:hover {
    background: var(--bg-window);
}

/* ===== RESULT SCREEN ===== */
#result-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.result-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

#result-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

#result-title {
    font-size: 32px;
    margin-bottom: 20px;
}

#result-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

#return-menu {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

#return-menu:hover {
    background: var(--accent-hover);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ===== INVESTIGATOR BAR (Outside OS) ===== */
#investigator-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(90deg, #1a0a2e, #2d1a3d);
    border-top: 2px solid #9333ea;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    z-index: 9999;
}

.inv-bar-label {
    color: #a855f7;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-right: auto;
}

.inv-btn {
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid #9333ea;
    color: #c084fc;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.inv-btn:hover {
    background: #9333ea;
    color: white;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}

/* Adjust desktop for investigator bar */
#desktop {
    padding-bottom: 104px !important;
}

#taskbar {
    bottom: 44px !important;
}

/* ===== NOTES OVERLAY (Obsidian-style) ===== */
#notes-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.notes-app {
    width: 90%;
    height: 85%;
    max-width: 1200px;
    background: #0f0a1a;
    border: 1px solid #4c1d95;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.3);
}

.notes-sidebar {
    width: 280px;
    background: #150d20;
    border-right: 1px solid #4c1d95;
    display: flex;
    flex-direction: column;
}

.notes-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #4c1d95;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-sidebar-header h3 {
    color: #c084fc;
    font-size: 16px;
}

#new-note-btn {
    background: #9333ea;
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

#new-note-btn:hover {
    background: #a855f7;
}

#notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.note-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.note-item:hover {
    background: rgba(147, 51, 234, 0.15);
}

.note-item.active {
    background: rgba(147, 51, 234, 0.25);
    border-left-color: #9333ea;
}

.note-item-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item-preview {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0a0510;
}

.notes-editor-header {
    padding: 15px 20px;
    border-bottom: 1px solid #4c1d95;
    display: flex;
    align-items: center;
    gap: 15px;
}

#note-title {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: bold;
    outline: none;
}

#note-title::placeholder {
    color: var(--text-dim);
}

.notes-editor-actions {
    display: flex;
    gap: 10px;
}

.notes-editor-actions button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #4c1d95;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.notes-editor-actions button:hover:not(.disabled) {
    background: rgba(147, 51, 234, 0.3);
    border-color: #9333ea;
    color: white;
}

.notes-editor-actions button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#paste-snip-btn.has-snip {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
    animation: pulse-green 1s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }

    50% {
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    }
}

#close-notes-btn:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

#note-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.8;
    outline: none;
}

#note-content:empty::before {
    content: attr(placeholder);
    color: var(--text-dim);
}

#note-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
    border: 2px solid #4c1d95;
}

.notes-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 50px;
}

/* ===== SNIPPING TOOL ===== */
#snip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 20000;
    cursor: crosshair;
}

.snip-instructions {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #9333ea;
}

#snip-selection {
    position: absolute;
    border: 2px dashed #9333ea;
    background: rgba(147, 51, 234, 0.1);
    display: none;
}

/* ===== PAUSE MENU ===== */
#pause-menu {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: pauseFadeIn 0.2s ease;
}

@keyframes pauseFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pause-container {
    position: relative;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 40px 50px;
    min-width: 320px;
    box-shadow: 0 0 60px rgba(233, 69, 96, 0.3);
    animation: pauseSlideIn 0.3s ease;
}

@keyframes pauseSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pause-header {
    text-align: center;
    margin-bottom: 30px;
}

.pause-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.pause-header h2 {
    font-size: 28px;
    letter-spacing: 6px;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.pause-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pause-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pause-btn:hover {
    background: rgba(233, 69, 96, 0.15);
    border-color: var(--accent);
    transform: translateX(5px);
}

.pause-btn .btn-icon {
    font-size: 20px;
}

.pause-btn.quit-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
}

.pause-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pause-footer p {
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 1px;
}

/* Pause Panels (Settings, Help) */
.pause-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 0 60px rgba(233, 69, 96, 0.3);
    animation: pauseSlideIn 0.3s ease;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    color: var(--accent);
    font-size: 18px;
}

.panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.panel-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.panel-content {
    padding: 25px;
}

/* Settings Panel */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row label:first-child {
    color: var(--text-primary);
    font-size: 14px;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-color);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

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

.toggle input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

/* Help Panel */
.help-section {
    margin-bottom: 20px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 10px;
}

.help-section p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section li {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section kbd {
    background: var(--bg-taskbar);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3px 8px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: var(--accent);
}

/* ===== HELP OVERLAY (H Key) ===== */
#help-overlay {
    position: fixed;
    inset: 0;
    z-index: 24000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.help-card {
    position: relative;
    background: linear-gradient(180deg, #1e1e2f 0%, #12121a 100%);
    border: 2px solid #4ade80;
    border-radius: 16px;
    min-width: 420px;
    max-width: 480px;
    box-shadow: 0 0 50px rgba(74, 222, 128, 0.2);
    animation: helpSlideIn 0.25s ease;
}

@keyframes helpSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.help-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.help-icon {
    font-size: 28px;
}

.help-card-header h2 {
    flex: 1;
    font-size: 18px;
    letter-spacing: 3px;
    color: #4ade80;
}

.help-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.help-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.help-card-body {
    padding: 25px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.help-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.help-item kbd {
    display: block;
    background: var(--bg-taskbar);
    border: 1px solid #4ade80;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #4ade80;
    margin-bottom: 8px;
}

.help-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.help-tools h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.tool-icon {
    font-size: 24px;
}

.tool-item strong {
    color: var(--text-primary);
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.tool-item p {
    color: var(--text-dim);
    font-size: 12px;
    margin: 0;
}

.help-card-footer {
    text-align: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.help-card-footer p {
    color: var(--text-dim);
    font-size: 12px;
    margin: 0;
}

.help-card-footer kbd {
    background: var(--bg-taskbar);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: #4ade80;
}