@import url('https://fonts.googleapis.com/css2?family=Tahoma:wght@400;700&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    font-size: 11px;
}

#desktop {
    width: 100%;
    height: calc(100% - 36px);
    background: linear-gradient(
        180deg,
        #245EDC 0%,
        #3A7BD5 10%,
        #4A90D9 20%,
        #5BA0E0 30%,
        #6DB3E8 40%,
        #7EC8F0 48%,
        #245EDC 49%,
        #3D8B37 49.5%,
        #4CA64C 52%,
        #3D8B37 60%,
        #2D7A2D 70%,
        #1E6B1E 80%,
        #0E5C0E 90%,
        #004D00 100%
    );
    position: relative;
    background-size: cover;
}

#desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 25%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255,255,200,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

#desktop-icons {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
    padding: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.desktop-icon.selected {
    background: rgba(11, 97, 255, 0.4);
    border-color: rgba(11, 97, 255, 0.6);
}

.icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    image-rendering: pixelated;
}

.my-computer-icon {
    background: linear-gradient(135deg, #d4d4d4 0%, #a0a0a0 50%, #808080 100%);
    border-radius: 4px;
    position: relative;
    border: 2px solid #888;
}

.my-computer-icon::before {
    content: '💻';
    font-size: 30px;
    position: absolute;
}

.my-documents-icon {
    background: linear-gradient(135deg, #f5d442 0%, #e8b92d 50%, #d4a017 100%);
    border-radius: 2px;
    position: relative;
}

.my-documents-icon::before {
    content: '📁';
    font-size: 32px;
    position: absolute;
}

.recycle-bin-icon {
    position: relative;
}

.recycle-bin-icon::before {
    content: '🗑️';
    font-size: 32px;
    position: absolute;
}

.ie-icon {
    position: relative;
}

.ie-icon::before {
    content: '🌐';
    font-size: 32px;
    position: absolute;
}

.notepad-icon {
    position: relative;
}

.notepad-icon::before {
    content: '📝';
    font-size: 32px;
    position: absolute;
}

.folder-icon {
    position: relative;
}

.folder-icon::before {
    content: '📁';
    font-size: 32px;
    position: absolute;
}

.folder-icon.encrypted::before {
    content: '🔒';
}

.icon-label {
    color: white;
    text-align: center;
    font-size: 11px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), 0 0 4px rgba(0,0,0,0.5);
    word-wrap: break-word;
    max-width: 72px;
    line-height: 1.2;
}

.icon-label::selection {
    background: #316AC5;
    color: white;
}

#selection-rect {
    position: absolute;
    border: 1px dotted rgba(255,255,255,0.7);
    background: rgba(11, 97, 255, 0.2);
    display: none;
    pointer-events: none;
    z-index: 999;
}

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(
        180deg,
        #3168d5 0%,
        #245edc 2%,
        #1941A5 3%,
        #245edc 5%,
        #3168d5 10%,
        #4e7ee4 20%,
        #588bea 40%,
        #588bea 60%,
        #4e7ee4 80%,
        #3168d5 95%,
        #1941A5 97%,
        #245edc 98%,
        #3168d5 100%
    );
    display: flex;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.3);
}

#start-button {
    height: 36px;
    padding: 0 12px 0 6px;
    background: linear-gradient(
        180deg,
        #3a9c3a 0%,
        #3a9c3a 3%,
        #3c9e3c 10%,
        #45b045 40%,
        #4dbd4d 60%,
        #45b045 80%,
        #3a9c3a 97%,
        #2d8a2d 100%
    );
    border: none;
    border-radius: 0 10px 10px 0;
    color: white;
    font-family: 'Tahoma', 'Franklin Gothic Medium', sans-serif;
    font-size: 13px;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        1px 0 0 rgba(0,0,0,0.1);
}

#start-button:hover {
    background: linear-gradient(
        180deg,
        #4aad4a 0%,
        #4aad4a 3%,
        #4db84d 10%,
        #55c455 40%,
        #5fd15f 60%,
        #55c455 80%,
        #4aad4a 97%,
        #3d9a3d 100%
    );
}

#start-button:active {
    background: linear-gradient(
        180deg,
        #2d8a2d 0%,
        #2d8a2d 3%,
        #339233 10%,
        #3a9a3a 40%,
        #42a842 60%,
        #3a9a3a 80%,
        #2d8a2d 97%,
        #207a20 100%
    );
}

.start-flag {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF6B35 25%, #4CAF50 25%, #4CAF50 50%, #2196F3 50%, #2196F3 75%, #FFD700 75%);
    transform: perspective(100px) rotateY(-10deg);
    border-radius: 1px;
}

#quick-launch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
    margin-left: 4px;
    border-left: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
    height: 28px;
}

.quick-launch-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-launch-btn:hover {
    background: rgba(255,255,255,0.2);
}

.ql-ie-icon, .ql-desktop-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ql-ie-icon::before {
    content: '🌐';
}

.ql-desktop-icon::before {
    content: '🖥️';
}

#taskbar-buttons {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
    height: 100%;
    overflow: hidden;
}

.taskbar-btn {
    height: 26px;
    padding: 0 10px;
    background: linear-gradient(
        180deg,
        #4e7ee4 0%,
        #3a6ed4 40%,
        #2d5ec4 60%,
        #3a6ed4 100%
    );
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 180px;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.taskbar-btn.active {
    background: linear-gradient(
        180deg,
        #c4d4f4 0%,
        #a8bce8 20%,
        #8eaade 40%,
        #a8bce8 60%,
        #c4d4f4 100%
    );
    color: #000;
    text-shadow: none;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}

.taskbar-btn:hover {
    filter: brightness(1.1);
}

.taskbar-btn .tb-icon {
    width: 16px;
    height: 16px;
    font-size: 14px;
}

#system-tray {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 100%;
    background: linear-gradient(
        180deg,
        #1b6beb 0%,
        #1260e8 50%,
        #0d4fcf 100%
    );
    border-left: 1px solid rgba(0,0,0,0.15);
    gap: 8px;
}

.tray-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tray-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 14px;
}

.volume-icon::before {
    content: '🔊';
}

.network-icon::before {
    content: '❌';
    font-size: 10px;
}

.shield-icon::before {
    content: '🛡️';
    font-size: 12px;
}

#clock {
    color: white;
    font-size: 11px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    white-space: nowrap;
}

#sponsored-badge {
    position: fixed;
    bottom: 42px;
    right: 8px;
    background: linear-gradient(180deg, #3168D5 0%, #1941A5 100%);
    color: #fff;
    font-family: 'Tahoma', sans-serif;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px 3px 0 0;
    text-decoration: none;
    z-index: 10001;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    box-shadow: 0 -1px 3px rgba(0,0,0,0.2);
    border: 1px solid #0D3288;
    border-bottom: none;
    letter-spacing: 0.3px;
}

#sponsored-badge:hover {
    background: linear-gradient(180deg, #4B8BE5 0%, #245EDC 100%);
}

#boot-screen {
    z-index: 99999;
    background: #000;
}

.boot-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.boot-phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bios-screen {
    width: 100%;
    height: 100%;
}

.bios-screen {
    background: #000;
    color: #aaa;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 20px;
    line-height: 1.5;
    white-space: pre;
    width: 100%;
}

.bios-screen span {
    color: #fff;
}

.xp-boot-screen {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xp-boot-logo {
    text-align: center;
}

.xp-logo-text {
    color: white;
    font-size: 48px;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.xp-boot-bar {
    width: 220px;
    height: 20px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.xp-boot-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #245EDC 0%,
        #3168D5 30%,
        #4B8BE5 50%,
        #3168D5 70%,
        #245EDC 100%
    );
    background-size: 40px 100%;
    animation: bootProgress 2.5s linear forwards;
    border-radius: 2px;
}

@keyframes bootProgress {
    0% { width: 0%; }
    20% { width: 20%; }
    50% { width: 55%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.xp-login-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0054E3 0%, #0066FF 30%, #0077FF 60%, #0044CC 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-user-icon {
    width: 128px;
    height: 128px;
    background: linear-gradient(135deg, #666 0%, #888 50%, #666 100%);
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    margin-bottom: 12px;
}

.login-user-icon::before {
    content: '👤';
}

.login-username {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.login-loading {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.ransomware-boot-scare {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ff0000;
}

.scare-skull {
    font-size: 80px;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.scare-text {
    text-align: center;
}

.scare-text h2 {
    font-size: 20px;
    margin-top: 20px;
}

.scare-text h1 {
    font-size: 28px;
    margin: 10px 0;
    text-shadow: 0 0 20px #ff0000;
}

.scare-text p {
    color: #aaa;
    margin: 10px 0;
}

.encrypt-progress {
    width: 300px;
    height: 20px;
    background: #222;
    border: 1px solid #444;
    border-radius: 2px;
    margin: 10px auto;
    overflow: hidden;
}

.encrypt-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    transition: width 0.1s;
    animation: encryptProgress 3s linear forwards;
}

@keyframes encryptProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

#encrypt-percent {
    font-size: 24px;
    color: #ff0000;
}

.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 4px;
    cursor: default;
}

.file-item:hover {
    background: #E8F0FE;
}

.file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 2px;
}

.file-icon.drive-icon::before { content: '💾'; }
.file-icon.folder-icon::before { content: '📁'; }
.file-icon.folder-icon.encrypted::before { content: '🔒'; }
.file-icon.text-icon::before { content: '📄'; }
.file-icon.file-enc-icon::before { content: '🔐'; font-size: 20px; }

.file-item span {
    text-align: center;
    font-size: 10px;
    word-wrap: break-word;
    max-width: 78px;
}

.file-item.encrypted {
    opacity: 0.6;
}

.empty-folder {
    padding: 20px;
    color: #888;
    text-align: center;
}

.encrypted-folder {
    text-align: center;
    padding: 20px;
}

.lock-icon-big {
    font-size: 64px;
    margin-bottom: 10px;
}

.encrypted-folder h3 {
    color: #cc0000;
    margin-bottom: 8px;
}

.encrypted-folder p {
    color: #666;
    margin-bottom: 16px;
}

.encrypted-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.encrypted-files .file-item {
    width: auto;
    max-width: 200px;
}

.ie-content {
    background: white;
}

.ie-page-unavailable {
    padding: 30px;
    text-align: center;
}

.ie-page-unavailable h2 {
    color: #333;
    font-size: 16px;
    margin-bottom: 16px;
}

.ie-page-unavailable ul {
    list-style: disc;
    text-align: left;
    padding-left: 40px;
    color: #666;
}

.ie-page-unavailable li {
    margin-bottom: 6px;
}

.notepad-content {
    background: white;
    font-family: 'Lucida Console', 'Courier New', monospace;
    font-size: 12px;
    overflow: auto;
    padding: 4px;
}

.ransom-text {
    font-family: 'Lucida Console', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.3;
    white-space: pre-wrap;
    color: #333;
}

.ransom-text span {
    color: #cc0000;
    font-weight: bold;
}

.play-roulette-btn {
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: 2px solid #880000;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: glowPulse 2s ease-in-out infinite;
}

.play-roulette-btn:hover {
    background: linear-gradient(180deg, #ff6666 0%, #dd2222 100%);
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255,0,0,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,0,0,0.6); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50000;
}

#bsod-overlay {
    z-index: 99999;
}

.bsod-screen {
    width: 100%;
    height: 100%;
    background: #0000AA;
    color: white;
    font-family: 'Lucida Console', 'Courier New', monospace;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.bsod-header {
    background: #A8A8A8;
    color: #0000AA;
    padding: 2px 8px;
    font-size: 14px;
    width: fit-content;
    margin-bottom: 20px;
}

.bsod-message {
    font-size: 13px;
    line-height: 1.6;
}

.bsod-dump {
    color: #A8A8A8;
}

.bsod-physical {
    color: #A8A8A8;
    font-size: 12px;
}
