/* ============================================
   COMPUTER REPAIR SIMULATOR - STYLES
   happystoner5420 Games
   ============================================ */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #000; user-select: none; }

/* ============================================
   SCREEN MANAGEMENT
   ============================================ */
.screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; z-index: 1; }
.screen.active { display: flex; }
.hidden { display: none !important; }

/* ============================================
   MAIN MENU
   ============================================ */
.menu-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 30%, #0d2137 60%, #0a0a1a 100%);
    z-index: 0;
}
.menu-bg::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(0,120,212,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0,180,160,0.1) 0%, transparent 50%);
}
.menu-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.menu-container {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; width: 100%; height: 100%;
    padding: 40px;
}

.menu-logo { text-align: center; margin-bottom: 50px; }
.logo-icon { margin-bottom: 20px; filter: drop-shadow(0 0 20px rgba(0,120,212,0.5)); }
.menu-title {
    font-size: 48px; font-weight: 700; color: #fff; letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(0,120,212,0.5), 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
}
.menu-title span { font-size: 52px; color: #00d4aa; letter-spacing: 6px; }
.menu-subtitle { color: #8899aa; font-size: 16px; margin-top: 10px; letter-spacing: 3px; text-transform: uppercase; }

.menu-buttons { display: flex; flex-direction: column; gap: 15px; width: 320px; }

.menu-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 16px 32px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    font-size: 16px; font-weight: 600; letter-spacing: 2px; cursor: pointer;
    transition: all 0.3s ease; font-family: inherit; position: relative; overflow: hidden;
}
.menu-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}
.menu-btn:hover::before { left: 100%; }

.btn-start {
    background: linear-gradient(135deg, #0078d4, #005a9e); color: #fff;
    border-color: #0078d4; box-shadow: 0 4px 15px rgba(0,120,212,0.3);
}
.btn-start:hover { background: linear-gradient(135deg, #1a8ae6, #0078d4); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0,120,212,0.5); }

.btn-howto {
    background: rgba(255,255,255,0.05); color: #ccc;
    border-color: rgba(255,255,255,0.15);
}
.btn-howto:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

.btn-exit {
    background: rgba(255,50,50,0.1); color: #ff6666;
    border-color: rgba(255,50,50,0.2);
}
.btn-exit:hover { background: rgba(255,50,50,0.2); transform: translateY(-2px); }

.btn-back {
    background: rgba(255,255,255,0.05); color: #aaa;
    border-color: rgba(255,255,255,0.1);
}
.btn-back:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-small { padding: 10px 20px; font-size: 13px; letter-spacing: 1px; }

.menu-footer { position: absolute; bottom: 30px; color: #556; font-size: 13px; letter-spacing: 1px; }

/* ============================================
   HOW TO PLAY
   ============================================ */
.howto-container {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    align-items: center; width: 100%; height: 100%; padding: 40px; overflow-y: auto;
}
.howto-container h2 {
    font-size: 36px; color: #fff; letter-spacing: 4px; margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0,120,212,0.4);
}
.howto-content {
    max-width: 700px; width: 100%; display: flex; flex-direction: column; gap: 25px;
    margin-bottom: 30px;
}
.howto-section {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 25px;
}
.howto-section h3 { color: #00d4aa; font-size: 18px; margin-bottom: 12px; }
.howto-section p, .howto-section li { color: #bbb; font-size: 14px; line-height: 1.8; }
.howto-section ul { list-style: none; padding-left: 0; }
.howto-section li::before { content: '▸ '; color: #0078d4; }
.howto-section strong { color: #fff; }

.howto-credits {
    background: linear-gradient(135deg, rgba(0,120,212,0.1), rgba(0,212,170,0.05));
    border: 1px solid rgba(0,120,212,0.2); border-radius: 12px; padding: 30px; text-align: center;
}
.howto-credits h3 { color: #ffd700; margin-bottom: 15px; }
.credits-studio { font-size: 20px !important; color: #00d4aa !important; font-weight: 600; margin-bottom: 10px; }
.howto-credits p { color: #999; font-size: 13px; line-height: 2; }
.credits-year { font-size: 16px !important; color: #666 !important; margin-top: 10px; }

/* ============================================
   CUSTOMER SELECT
   ============================================ */
.customers-container {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    align-items: center; width: 100%; height: 100%; padding: 40px;
}
.customers-container h2 {
    font-size: 32px; color: #fff; letter-spacing: 4px; margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0,120,212,0.4);
}
.customers-subtitle { color: #888; font-size: 14px; margin-bottom: 30px; }

.customers-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
    max-width: 900px; width: 100%; margin-bottom: 30px;
}

.customer-card {
    background: rgba(255,255,255,0.03); border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 20px 15px; text-align: center; cursor: pointer;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.customer-card:hover {
    background: rgba(0,120,212,0.1); border-color: #0078d4;
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,120,212,0.2);
}
.customer-card.completed {
    border-color: #4caf50; background: rgba(76,175,80,0.05); opacity: 0.6; pointer-events: none;
}
.customer-card.completed::after {
    content: '✓'; position: absolute; top: 10px; right: 10px;
    color: #4caf50; font-size: 24px; font-weight: bold;
}

.customer-avatar {
    width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.1); overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.customer-avatar svg { width: 100%; height: 100%; }

.customer-name { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.customer-issue { color: #888; font-size: 11px; line-height: 1.4; }

/* ============================================
   WINDOWS 11 DESKTOP
   ============================================ */
#win-desktop {
    width: 100%; height: 100%; position: relative; overflow: hidden;
}

#desktop-wallpaper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}

#desktop-icons {
    position: absolute; top: 20px; left: 20px; z-index: 1;
    display: flex; flex-direction: column; gap: 8px; flex-wrap: wrap;
    max-height: calc(100% - 80px);
}

.desktop-icon {
    width: 80px; padding: 8px 4px; display: flex; flex-direction: column;
    align-items: center; gap: 4px; border-radius: 6px; cursor: pointer;
    transition: background 0.15s;
}
.desktop-icon:hover { background: rgba(255,255,255,0.1); }
.desktop-icon svg { width: 40px; height: 40px; }
.desktop-icon span {
    font-size: 11px; color: #fff; text-align: center; line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 5px rgba(0,0,0,0.5);
    word-break: break-word;
}

/* Problems Layer */
#problems-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 48px);
    z-index: 10; pointer-events: none;
}
#problems-layer > * { pointer-events: auto; }

/* ============================================
   VIRUS POPUPS & PROBLEMS
   ============================================ */
.virus-popup {
    position: absolute; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden; cursor: pointer; animation: popupAppear 0.3s ease-out;
    z-index: 100;
}

@keyframes popupAppear {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.popup-titlebar {
    height: 32px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 10px; font-size: 12px; font-weight: 600;
}
.popup-titlebar-btns { display: flex; gap: 4px; }
.popup-titlebar-btns span {
    width: 14px; height: 14px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 9px; cursor: pointer;
}

.popup-body { padding: 20px; text-align: center; }
.popup-body h3 { margin-bottom: 10px; }
.popup-body p { margin-bottom: 15px; font-size: 13px; line-height: 1.5; }
.popup-body button {
    padding: 8px 20px; border-radius: 4px; border: none; cursor: pointer;
    font-weight: 600; font-size: 13px; margin: 4px;
}

/* Scam popup styles */
.popup-scam { border: 2px solid #ff4444; }
.popup-scam .popup-titlebar { background: #cc0000; color: #fff; }
.popup-scam .popup-body { background: #fff0f0; color: #333; }
.popup-scam .popup-body h3 { color: #cc0000; }
.popup-scam .popup-body .btn-danger { background: #cc0000; color: #fff; }
.popup-scam .popup-body .btn-ok { background: #4caf50; color: #fff; }

/* Fake antivirus */
.popup-fakeav { border: 2px solid #ff8800; }
.popup-fakeav .popup-titlebar { background: #ff6600; color: #fff; }
.popup-fakeav .popup-body { background: #fff8f0; color: #333; }
.popup-fakeav .popup-body h3 { color: #ff6600; }

/* Adware */
.popup-adware { border: 2px solid #00cc44; }
.popup-adware .popup-titlebar { background: #00aa33; color: #fff; }
.popup-adware .popup-body { background: #f0fff4; color: #333; }
.popup-adware .popup-body h3 { color: #007722; }

/* Ransomware */
.popup-ransomware { border: 3px solid #ff0000; }
.popup-ransomware .popup-titlebar { background: #880000; color: #ff4444; }
.popup-ransomware .popup-body { background: #1a0000; color: #ff6666; }
.popup-ransomware .popup-body h3 { color: #ff0000; font-size: 20px; }

/* System error */
.popup-syserror { border: 1px solid #ccc; }
.popup-syserror .popup-titlebar { background: #f0f0f0; color: #333; }
.popup-syserror .popup-body { background: #fff; color: #333; }
.popup-syserror .popup-body .error-icon { font-size: 40px; margin-bottom: 10px; }

/* Fake update */
.popup-fakeupdate { border: 1px solid #0078d4; }
.popup-fakeupdate .popup-titlebar { background: #0078d4; color: #fff; }
.popup-fakeupdate .popup-body { background: #f3f9ff; color: #333; }

/* Browser hijack */
.popup-browser { border: 2px solid #8844cc; }
.popup-browser .popup-titlebar { background: #6622aa; color: #fff; }
.popup-browser .popup-body { background: #f8f0ff; color: #333; }
.popup-browser .popup-body h3 { color: #6622aa; }

/* Crypto miner */
.popup-crypto { border: 2px solid #ffa500; }
.popup-crypto .popup-titlebar { background: #cc8400; color: #fff; }
.popup-crypto .popup-body { background: #fffaf0; color: #333; }

/* Tech support scam */
.popup-techscam { border: 3px solid #ff0000; }
.popup-techscam .popup-titlebar { background: linear-gradient(90deg, #0078d4, #005a9e); color: #fff; }
.popup-techscam .popup-body { background: #001a33; color: #fff; }
.popup-techscam .popup-body h3 { color: #ff4444; font-size: 18px; }

/* Spyware */
.popup-spyware { border: 2px solid #666; }
.popup-spyware .popup-titlebar { background: #333; color: #0f0; }
.popup-spyware .popup-body { background: #111; color: #0f0; font-family: 'Courier New', monospace; }

/* PUP installer */
.popup-pup { border: 1px solid #aaa; }
.popup-pup .popup-titlebar { background: #e8e8e8; color: #333; }
.popup-pup .popup-body { background: #f5f5f5; color: #333; }

/* Desktop virus effects */
.desktop-virus-effect {
    position: absolute; pointer-events: auto; cursor: pointer;
    animation: virusGlitch 0.5s infinite alternate;
}
@keyframes virusGlitch {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg) brightness(1.2); }
}

/* Virus overlay effects */
.virus-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 5;
}

/* Glitch effect */
.glitch-effect {
    animation: glitchAnim 0.1s infinite;
}
@keyframes glitchAnim {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(1px, -1px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 3px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(3px, 1px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-3px, -2px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(2px, -3px); }
}

/* Screen shake */
.screen-shake { animation: shake 0.3s ease-in-out; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) translateY(3px); }
    50% { transform: translateX(5px) translateY(-3px); }
    75% { transform: translateX(-3px) translateY(2px); }
}

/* Problem highlight when tool is selected */
.problem-highlight {
    outline: 3px solid #00ff00;
    outline-offset: 2px;
    animation: highlightPulse 1s infinite;
}
@keyframes highlightPulse {
    0%, 100% { outline-color: #00ff00; }
    50% { outline-color: #00aa00; }
}

/* Fix animation */
.fixing-anim {
    animation: fixingEffect 1.5s ease-out forwards;
}
@keyframes fixingEffect {
    0% { transform: scale(1); opacity: 1; filter: brightness(1); }
    30% { transform: scale(1.1); filter: brightness(2) saturate(0); }
    60% { transform: scale(0.9); opacity: 0.5; filter: brightness(1.5); }
    100% { transform: scale(0); opacity: 0; filter: brightness(3); }
}

/* Scan line effect */
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: scanDown 2s linear;
    z-index: 200; pointer-events: none;
}
@keyframes scanDown {
    0% { top: 0; }
    100% { top: 100%; }
}

/* ============================================
   BSOD
   ============================================ */
#bsod-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #0078d4; z-index: 500; display: flex;
    align-items: center; justify-content: center;
}
.bsod-content { max-width: 700px; color: #fff; }
.bsod-sad { font-size: 120px; margin-bottom: 20px; }
.bsod-content h2 { font-size: 28px; font-weight: 300; margin-bottom: 15px; }
.bsod-content p { font-size: 16px; font-weight: 300; margin-bottom: 20px; }
.bsod-progress { font-size: 16px; margin-bottom: 30px; }
.bsod-qr { margin-bottom: 15px; }
.bsod-stop { font-size: 12px; opacity: 0.8; }
.bsod-actions { margin-top: 30px; }
.bsod-reinstall-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bsod-reinstall-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   TASKBAR (Windows 11 style)
   ============================================ */
#taskbar {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 48px;
    background: rgba(32, 32, 32, 0.85); backdrop-filter: blur(30px) saturate(1.5);
    border-top: 1px solid rgba(255,255,255,0.08); display: flex;
    align-items: center; z-index: 50; padding: 0 12px;
}

#start-button {
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border: none; background: transparent;
    border-radius: 6px; cursor: pointer; transition: background 0.15s;
    margin-right: 8px;
}
#start-button:hover { background: rgba(255,255,255,0.1); }

#taskbar-search {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 6px 16px; color: #888; font-size: 13px;
    min-width: 200px; cursor: text;
}

#taskbar-apps {
    display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1;
}

.taskbar-icon {
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border-radius: 6px; cursor: pointer;
    transition: background 0.15s;
}
.taskbar-icon:hover { background: rgba(255,255,255,0.1); }

#taskbar-right {
    display: flex; align-items: center; gap: 12px; margin-left: auto;
}

#taskbar-systray { display: flex; align-items: center; gap: 8px; }

#taskbar-clock {
    display: flex; flex-direction: column; align-items: flex-end;
    padding: 4px 8px; border-radius: 6px; cursor: pointer;
    transition: background 0.15s;
}
#taskbar-clock:hover { background: rgba(255,255,255,0.1); }
#clock-time { color: #fff; font-size: 12px; }
#clock-date { color: #ccc; font-size: 11px; }

/* ============================================
   START MENU (Windows 11 style)
   ============================================ */
#start-menu {
    position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
    width: 600px; background: rgba(40, 40, 40, 0.92); backdrop-filter: blur(40px) saturate(1.8);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5); z-index: 60; overflow: hidden;
    animation: startMenuOpen 0.2s ease-out;
}
@keyframes startMenuOpen {
    0% { transform: translateX(-50%) translateY(20px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.start-menu-search {
    display: flex; align-items: center; gap: 10px; margin: 20px 24px 16px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 8px 16px;
}
.start-menu-search input {
    background: none; border: none; color: #999; font-size: 14px; width: 100%;
    outline: none; font-family: inherit;
}

.start-menu-pinned { padding: 0 24px 16px; }
.start-menu-pinned h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }

.start-menu-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}

.start-app {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 4px; border-radius: 6px; cursor: pointer; transition: background 0.15s;
}
.start-app:hover { background: rgba(255,255,255,0.08); }
.start-app svg { width: 28px; height: 28px; }
.start-app span { font-size: 11px; color: #ccc; text-align: center; }

.start-menu-recommended { padding: 0 24px 16px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }
.start-menu-recommended h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }

.start-recent-item {
    display: flex; align-items: center; gap: 12px; padding: 8px;
    border-radius: 6px; cursor: pointer; transition: background 0.15s;
}
.start-recent-item:hover { background: rgba(255,255,255,0.08); }
.start-recent-item svg { width: 32px; height: 32px; }
.start-recent-info span { display: block; }
.start-recent-info span:first-child { color: #ddd; font-size: 13px; }
.start-recent-info span:last-child { color: #888; font-size: 11px; }

.start-menu-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.start-menu-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-avatar-small { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #444; }
.user-avatar-small svg { width: 100%; height: 100%; }
#start-user-name { color: #ddd; font-size: 13px; }

.start-power-btn {
    width: 32px; height: 32px; display: flex; align-items: center;
    justify-content: center; border: none; background: transparent;
    border-radius: 6px; cursor: pointer; color: #ccc; transition: all 0.15s;
}
.start-power-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ============================================
   TOOL PANEL
   ============================================ */
#tool-panel {
    position: absolute; top: 0; right: 0; width: 250px; height: calc(100% - 48px);
    background: rgba(30, 30, 30, 0.92); backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255,255,255,0.08); z-index: 40;
    display: flex; flex-direction: column; overflow-y: auto;
}

.tool-panel-header {
    padding: 16px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tool-panel-header h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.problems-counter { color: #00d4aa; font-size: 14px; font-weight: 600; }

#tool-list { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }

.tool-item {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.tool-item:hover {
    background: rgba(0,120,212,0.15); border-color: rgba(0,120,212,0.3);
}
.tool-item.selected {
    background: rgba(0,120,212,0.25); border-color: #0078d4;
    box-shadow: 0 0 15px rgba(0,120,212,0.2);
}

.tool-icon {
    width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; flex-shrink: 0;
}
.tool-info { flex: 1; }
.tool-name { color: #fff; font-size: 13px; font-weight: 600; display: block; }
.tool-desc { color: #888; font-size: 11px; display: block; margin-top: 2px; }

.tool-panel-footer {
    padding: 12px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   TOOL FEEDBACK OVERLAY
   ============================================ */
#tool-feedback {
    position: fixed; top: 50%; left: calc(50% - 125px); transform: translate(-50%, -50%);
    z-index: 300; background: rgba(20,20,20,0.95); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 30px 40px; text-align: center; min-width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.feedback-icon { font-size: 48px; margin-bottom: 15px; }
.feedback-text { color: #fff; font-size: 16px; margin-bottom: 15px; }
.feedback-progress { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.feedback-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #0078d4, #00d4aa); border-radius: 3px; transition: width 0.1s; }

/* ============================================
   WINDOWS REINSTALL SCREENS
   ============================================ */
#reinstall-phases { width: 100%; height: 100%; position: relative; }
.reinstall-phase { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; }
.reinstall-phase.active { display: flex; align-items: center; justify-content: center; }

/* BIOS Screen */
.bios-screen {
    width: 100%; height: 100%; background: #000; color: #aaa;
    font-family: 'Courier New', monospace; padding: 40px; display: flex;
    flex-direction: column;
}
.bios-header { display: flex; justify-content: space-between; color: #888; font-size: 14px; margin-bottom: 30px; }
.bios-content { flex: 1; font-size: 16px; line-height: 2; }
.bios-content p { margin-bottom: 4px; }
.bios-detecting { color: #ff0; }
.bios-found { color: #0f0; }
.bios-booting { color: #0ff; animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.bios-footer { color: #666; font-size: 13px; border-top: 1px solid #333; padding-top: 10px; }

/* Windows Setup Screens */
.win-setup-screen {
    width: 700px; max-width: 90%; background: #1e1e1e; border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); overflow: hidden;
}
.win-setup-header {
    display: flex; align-items: center; gap: 12px; padding: 20px 30px;
    border-bottom: 1px solid #333; color: #fff; font-size: 18px;
}
.win-setup-body { padding: 30px; }
.win-setup-body h3 { color: #fff; font-size: 18px; margin-bottom: 15px; }
.win-setup-body p { color: #bbb; font-size: 14px; margin-bottom: 15px; }
.win-setup-footer { padding: 15px 30px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #333; align-items: center; }

.setup-field { margin-bottom: 20px; }
.setup-field label { display: block; color: #ccc; font-size: 14px; margin-bottom: 6px; }
.setup-field select {
    width: 100%; padding: 8px 12px; background: #2d2d2d; color: #fff;
    border: 1px solid #444; border-radius: 4px; font-size: 14px; font-family: inherit;
}

.setup-input {
    width: 100%; padding: 10px 14px; background: #2d2d2d; color: #fff;
    border: 1px solid #444; border-radius: 4px; font-size: 14px; font-family: monospace;
}

.setup-link { color: #5599ff; font-size: 13px; cursor: pointer; text-decoration: none; }
.setup-link:hover { text-decoration: underline; }

.center-content { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; gap: 20px; }

.win-btn {
    padding: 8px 24px; background: #0078d4; color: #fff; border: none;
    border-radius: 4px; font-size: 14px; cursor: pointer; font-family: inherit;
    transition: background 0.2s;
}
.win-btn:hover { background: #1a8ae6; }

.win-btn-large {
    padding: 15px 50px; background: #0078d4; color: #fff; border: 2px solid #0078d4;
    border-radius: 4px; font-size: 18px; cursor: pointer; font-family: inherit;
    transition: all 0.2s;
}
.win-btn-large:hover { background: #1a8ae6; }

.win-btn-small {
    padding: 6px 16px; background: #333; color: #ccc; border: 1px solid #555;
    border-radius: 3px; font-size: 12px; cursor: pointer; font-family: inherit;
    transition: background 0.2s;
}
.win-btn-small:hover { background: #444; }

/* Edition/Drive lists */
.edition-list, .drive-list { border: 1px solid #444; border-radius: 4px; overflow: hidden; margin-bottom: 15px; }
.edition-item, .drive-item {
    display: flex; justify-content: space-between; padding: 10px 16px;
    color: #ccc; font-size: 14px; cursor: pointer; border-bottom: 1px solid #333;
    transition: background 0.15s;
}
.edition-item:last-child, .drive-item:last-child { border-bottom: none; }
.edition-item:hover, .drive-item:hover { background: rgba(0,120,212,0.15); }
.edition-item.selected, .drive-item.selected { background: #0078d4; color: #fff; }

.drive-actions { display: flex; gap: 8px; margin-bottom: 15px; }
.format-msg { color: #4caf50; font-size: 13px; margin-top: 10px; }

/* Installing Screen */
.win-install-screen {
    width: 100%; height: 100%; background: #000; display: flex;
    flex-direction: column; align-items: center; justify-content: center; color: #fff;
}
.install-logo { margin-bottom: 30px; }
.win-install-screen h2 { font-size: 28px; font-weight: 300; margin-bottom: 40px; }

.install-steps { width: 500px; max-width: 90%; margin-bottom: 30px; }
.install-step {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    font-size: 15px; color: #888;
}
.install-step.active { color: #fff; }
.install-step.done { color: #4caf50; }
.install-step .step-check { width: 20px; color: transparent; }
.install-step.done .step-check { color: #4caf50; }
.install-step .step-pct { margin-left: auto; }

.install-overall { width: 500px; max-width: 90%; }
.install-bar { height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
.install-bar-fill { height: 100%; background: #0078d4; width: 0%; transition: width 0.3s; }

.install-note { color: #888; font-size: 13px; margin-top: 30px; }

/* Getting Ready Screen */
.win-ready-screen {
    width: 100%; height: 100%; background: #000; display: flex;
    flex-direction: column; align-items: center; justify-content: center; color: #fff;
}
.ready-spinner {
    width: 50px; height: 50px; border: 4px solid transparent; border-top: 4px solid #0078d4;
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 30px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.win-ready-screen h2 { font-size: 24px; font-weight: 300; margin-bottom: 10px; }
.win-ready-screen p { color: #888; font-size: 16px; }

/* ============================================
   VICTORY SCREEN
   ============================================ */
.victory-container {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; width: 100%; height: 100%;
    padding: 40px;
}
.victory-icon { margin-bottom: 30px; animation: victoryBounce 0.6s ease-out; }
@keyframes victoryBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.victory-container h2 {
    font-size: 42px; color: #4caf50; letter-spacing: 4px; margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(76,175,80,0.5);
}
.victory-msg { color: #bbb; font-size: 16px; margin-bottom: 30px; }

.victory-stats { display: flex; gap: 40px; margin-bottom: 40px; }
.stat-item { text-align: center; }
.stat-label { display: block; color: #888; font-size: 13px; margin-bottom: 6px; }
.stat-value { display: block; color: #fff; font-size: 28px; font-weight: 700; }

.victory-buttons { display: flex; gap: 15px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .customers-grid { grid-template-columns: repeat(3, 1fr); }
    #start-menu { width: 90%; }
    #tool-panel { width: 200px; }
}
@media (max-width: 600px) {
    .customers-grid { grid-template-columns: repeat(2, 1fr); }
    .menu-title { font-size: 28px; }
    .menu-title span { font-size: 32px; }
    #tool-panel { width: 180px; }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ============================================
   ADDITIONAL EFFECTS
   ============================================ */
/* Notification toast */
.toast-notification {
    position: fixed; top: 20px; right: 20px; background: rgba(40,40,40,0.95);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 16px 24px;
    color: #fff; font-size: 14px; z-index: 1000; animation: toastIn 0.3s ease-out;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
@keyframes toastIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Cursor effects */
.cursor-crosshair { cursor: crosshair; }
.cursor-tool { cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="%2300ff00" stroke-width="2"/><line x1="12" y1="2" x2="12" y2="22" stroke="%2300ff00" stroke-width="1"/><line x1="2" y1="12" x2="22" y2="12" stroke="%2300ff00" stroke-width="1"/></svg>') 12 12, crosshair; }

/* Matrix rain effect for certain viruses */
.matrix-rain {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 5; pointer-events: none;
    overflow: hidden;
}
.matrix-column {
    position: absolute; top: -100%; font-family: 'Courier New', monospace;
    color: #0f0; font-size: 14px; line-height: 1; writing-mode: vertical-lr;
    animation: matrixFall linear infinite;
    text-shadow: 0 0 5px #0f0;
}
@keyframes matrixFall {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Corrupted desktop icon effect */
.icon-corrupted {
    animation: iconCorrupt 0.5s infinite;
}
@keyframes iconCorrupt {
    0% { filter: hue-rotate(0deg) brightness(1); }
    25% { filter: hue-rotate(90deg) brightness(1.5); transform: skewX(5deg); }
    50% { filter: hue-rotate(180deg) brightness(0.5); transform: skewX(-3deg); }
    75% { filter: hue-rotate(270deg) brightness(2); transform: skewX(2deg); }
    100% { filter: hue-rotate(360deg) brightness(1); }
}

/* Fake loading bar for problems */
.fake-progress {
    height: 20px; background: #ddd; border-radius: 10px; overflow: hidden; margin: 10px 0;
}
.fake-progress-bar {
    height: 100%; background: linear-gradient(90deg, #ff4444, #ff8800, #ff4444);
    background-size: 200% 100%; animation: fakeLoad 1.5s linear infinite;
    border-radius: 10px;
}
@keyframes fakeLoad {
    0% { background-position: 200% 0; width: 30%; }
    50% { width: 70%; }
    100% { background-position: -200% 0; width: 45%; }
}
