/* Windows XP Theme - Core Styles */

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

body {
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.hidden {
    display: none !important;
}

/* Mobile Rotation Prompt */
.mobile-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #5a7ebd 0%, #4169e1 50%, #5a7ebd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.mobile-prompt-content {
    text-align: center;
    color: #fff;
    padding: 40px;
}

.rotate-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
}

.mobile-prompt-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-prompt-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.rotate-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 40px;
}

.phone-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

.phone-icon.rotated {
    transform: rotate(90deg);
}

.arrow-icon {
    animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(-10px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.boot-logo {
    text-align: center;
    margin-bottom: 80px;
}

/* Boot Logo Image */
.boot-logo-img {
    width: 180px;
    height: auto;
    margin: 0 auto 5px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Boot Title */
.boot-title {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 5px;
}

.boot-name {
    color: #fff;
    font-weight: 300;
}

.boot-xp {
    color: #ff6b3d;
    font-weight: 400;
}

.boot-subtitle {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

/* Loading Bar */
.loading-bar {
    width: 220px;
    height: 14px;
    background: #000;
    border: 2px solid #3a6ea5;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
}

.loading-progress {
    display: flex;
    gap: 4px;
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    animation: slideThrough 1.5s linear infinite;
    will-change: left;
}

.loading-square {
    width: 12px;
    height: 8px;
    background: linear-gradient(180deg, #3a9dff 0%, #0c59a8 100%);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(58, 157, 255, 0.8);
}

@keyframes slideThrough {
    0% {
        left: -60px;
    }
    100% {
        left: 100%;
    }
}

/* Boot Footer */
.boot-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px 40px;
}

.boot-instruction {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.boot-portfolio {
    color: #fff;
    font-size: 42px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -1px;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #5a7ebd 0%, #4169e1 50%, #5a7ebd 100%);
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.login-header-bar {
    background: linear-gradient(180deg, #1e4a9e 0%, #0d2d6e 100%);
    height: 80px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 0 10%;
}

.login-left {
    text-align: center;
}

.login-logo-img {
    width: 130px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-brand {
    font-size: 38px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.login-brand-name {
    color: #fff;
    font-weight: 300;
}

.login-brand-xp {
    color: #ff6b3d;
    font-weight: 400;
    font-size: 28px;
    vertical-align: super;
}

.login-brand-subtitle {
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.login-separator {
    width: 1px;
    height: 180px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0;
}

.login-right {
    display: flex;
    align-items: center;
}

.user-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.avatar-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6fa3ef 0%, #2e5cb8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 15px;
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.user-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.login-instruction {
    text-align: center;
    color: #fff;
    font-size: 13px;
    padding: 25px;
    margin-bottom: 10px;
}

.login-footer-bar {
    background: linear-gradient(180deg, #1e4a9e 0%, #0d2d6e 100%);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.login-restart {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.2s;
}

.login-restart:hover {
    background: rgba(255, 255, 255, 0.1);
}

.restart-icon {
    font-size: 18px;
}

.login-footer-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    text-align: right;
    line-height: 1.4;
}

/* Password Screen */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #5a7ebd 0%, #245edb 50%, #5a7ebd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.password-container {
    text-align: center;
    color: #fff;
}

.password-header {
    margin-bottom: 40px;
}

.password-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 40px 60px;
}

.avatar-circle-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6fa3ef 0%, #2e5cb8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.user-name-large {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 30px;
}

.password-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.password-input {
    flex: 1;
    padding: 8px 12px;
    font-family: 'Tahoma', sans-serif;
    font-size: 14px;
    border: 2px solid #fff;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
}

.password-submit {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, #4a9eff 0%, #0066cc 100%);
    border: 2px solid #fff;
    border-radius: 3px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.password-submit:hover {
    background: linear-gradient(180deg, #5aafff 0%, #0077dd 100%);
}

.password-submit:active {
    transform: scale(0.95);
}

.password-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #5a7ebd 0%, #4169e1 50%, #5a7ebd 100%);
    display: flex;
    flex-direction: column;
    z-index: 9997;
}

.welcome-header-bar {
    background: linear-gradient(180deg, #1e4a9e 0%, #0d2d6e 100%);
    height: 80px;
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-text {
    color: #fff;
    font-size: 80px;
    font-weight: 400;
    font-style: italic;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.welcome-footer-bar {
    background: linear-gradient(180deg, #1e4a9e 0%, #0d2d6e 100%);
    height: 80px;
    width: 100%;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* Desktop */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../background.jpg') center center / cover no-repeat;
    z-index: 1;
}

/* Desktop Icons */
.desktop-icons {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 90px);
    grid-auto-rows: 90px;
    grid-auto-flow: row;
    gap: 20px;
    align-content: start;
}

.desktop-icon {
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.desktop-icon {
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.desktop-icon.dragging {
    cursor: move;
}

/* Only show hover on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .desktop-icon:hover {
        background: rgba(0, 0, 255, 0.1);
    }
}

.desktop-icon.selected {
    background: rgba(0, 0, 255, 0.2);
}

.icon-image {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.icon-image.icon-fallback {
    font-size: 48px;
    width: auto;
    height: auto;
}

.icon-label {
    font-size: 11px;
    color: #fff;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    max-width: 100%;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #3c7dd7 0%, #1f5cb3 100%);
    border-top: 2px solid #4a8eeb;
    display: flex;
    align-items: center;
    z-index: 9000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.start-button {
    height: 36px;
    padding: 0 15px;
    background: linear-gradient(180deg, #5eab5e 0%, #3d8b3d 100%);
    border: 2px outset #7bc67b;
    border-radius: 0 8px 8px 0;
    color: #fff;
    font-family: 'Tahoma', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 5px;
    transition: all 0.1s;
}

.start-button:hover {
    background: linear-gradient(180deg, #6ebc6e 0%, #4d9b4d 100%);
}

.start-button:active {
    border-style: inset;
    background: linear-gradient(180deg, #3d8b3d 0%, #5eab5e 100%);
}

.start-icon {
    width: 20px;
    height: 20px;
}

.taskbar-tasks {
    flex: 1;
    display: flex;
    gap: 5px;
    padding: 0 5px;
    overflow-x: auto;
}

.taskbar-task {
    height: 32px;
    padding: 0 15px;
    background: linear-gradient(180deg, #4a8eeb 0%, #2f6dc5 100%);
    border: 2px outset #5a9efb;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 120px;
    max-width: 200px;
    transition: all 0.1s;
}

.taskbar-task:hover {
    background: linear-gradient(180deg, #5a9efb 0%, #3f7dd5 100%);
}

.taskbar-task.active {
    border-style: inset;
    background: linear-gradient(180deg, #2f6dc5 0%, #4a8eeb 100%);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-left: 2px solid #1f5cb3;
}

.tray-icons {
    display: flex;
    gap: 8px;
}

.tray-icon {
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.tray-icon:hover {
    transform: scale(1.2);
}

.clock {
    font-size: 12px;
    color: #fff;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px inset rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 42px;
    left: 5px;
    width: 380px;
    background: #fff;
    border: 2px outset #5a9efb;
    border-radius: 8px 8px 0 0;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    z-index: 9500;
}

.start-menu-header {
    background: linear-gradient(135deg, #4a8eeb 0%, #2f6dc5 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px 6px 0 0;
}

.start-user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6fa3ef 0%, #2e5cb8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.start-user-name {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.start-menu-body {
    display: flex;
    max-height: 400px;
}

.start-menu-left {
    flex: 1;
    background: #fff;
    padding: 10px 0;
    border-right: 1px solid #ccc;
    overflow: visible;
}

.start-menu-right {
    width: 150px;
    background: #d3e5fa;
    padding: 10px 0;
}

.start-menu-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    font-size: 11px;
}

.start-menu-item:hover {
    background: rgba(74, 142, 235, 0.2);
}

.menu-icon {
    font-size: 32px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.menu-icon-img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
}

.menu-title {
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.menu-subtitle {
    font-size: 10px;
    color: #666;
}

.menu-arrow {
    font-size: 10px;
    color: #666;
}

.start-menu-separator {
    height: 1px;
    background: #ccc;
    margin: 5px 10px;
}

/* Submenu */
.submenu {
    position: fixed;
    left: 390px;
    bottom: 100px;
    width: 220px;
    max-height: 400px;
    overflow-y: auto;
    background: #ffffff;
    border: 2px solid;
    border-color: #5a9efb #003c74 #003c74 #5a9efb;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0s 0.6s, visibility 0s 0.6s;
}

.submenu .start-menu-item {
    padding: 8px 10px;
    margin: 0;
    background: #ffffff;
}

.submenu .start-menu-separator {
    margin: 5px 10px;
}

#all-programs-item {
    position: relative;
}

#all-programs-item:hover .submenu,
.submenu:hover {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Start Menu Footer */
.start-menu-footer {
    background: linear-gradient(180deg, #4a8eeb 0%, #2f6dc5 100%);
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.start-menu-footer-left {
    display: flex;
    gap: 8px;
}

.start-menu-footer-right {
    display: flex;
    gap: 8px;
}

.start-menu-footer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.start-menu-footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* O
range Theme - Eye Comfort Mode */
body.orange-theme {
    filter: sepia(0.3) hue-rotate(-10deg) saturate(1.2);
}

body.orange-theme .desktop {
    background-color: #2a2416;
}

body.orange-theme .window {
    filter: brightness(0.95) sepia(0.2);
}

/* XP Dialog Styles */
.xp-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.xp-dialog-content {
    background: #ece9d8;
    border: 3px solid;
    border-color: #fff #888 #888 #fff;
    border-radius: 8px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Tahoma', sans-serif;
}

.xp-dialog-header {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 100%);
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0 0;
}

.xp-dialog-header .dialog-title {
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.xp-dialog-header .dialog-close {
    background: #e46;
    color: white;
    border: 1px solid #c34;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 3px;
}

.xp-dialog-header .dialog-close:hover {
    background: #f57;
}

.xp-dialog-body {
    padding: 15px;
    background: #ece9d8;
}

.xp-dialog-footer {
    padding: 10px 15px;
    text-align: right;
    background: #ece9d8;
    border-radius: 0 0 5px 5px;
}

.xp-button {
    background: linear-gradient(180deg, #fff 0%, #d4d0c8 100%);
    border: 1px solid #003c74;
    padding: 5px 20px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 5px;
}

.xp-button:hover {
    background: linear-gradient(180deg, #fff 0%, #e0ddd5 100%);
}

.xp-button:active {
    background: linear-gradient(180deg, #d4d0c8 0%, #fff 100%);
}

.xp-button-primary {
    font-weight: bold;
}

/* Tray icon hover effect */
.tray-icon {
    cursor: pointer;
    transition: transform 0.1s;
}

.tray-icon:hover {
    transform: scale(1.2);
}

.tray-icon:active {
    transform: scale(0.95);
}


/* Shutdown Screen - Windows XP Style */
.shutdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s;
}

.shutdown-screen.hidden {
    display: none;
}

.shutdown-logo {
    margin-bottom: 40px;
}

.shutdown-logo img {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.shutdown-brand {
    text-align: center;
    margin-bottom: 60px;
}

.shutdown-name {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.shutdown-subtitle {
    font-family: 'Tahoma', sans-serif;
    font-size: 18px;
    color: #ccc;
    letter-spacing: 1px;
}

.shutdown-loading {
    width: 300px;
    margin-bottom: 30px;
}

.shutdown-bar {
    width: 100%;
    height: 14px;
    background: #000;
    border: 2px solid #3a6ea5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.shutdown-square {
    display: flex;
    gap: 4px;
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    animation: shutdownSlide 1.5s linear infinite;
}

.shutdown-square div {
    width: 12px;
    height: 8px;
    background: linear-gradient(180deg, #3a9dff 0%, #0c59a8 100%);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(58, 157, 255, 0.8);
}

@keyframes shutdownSlide {
    0% {
        left: -60px;
    }
    100% {
        left: 100%;
    }
}

.shutdown-text {
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
}


/* External Link Button */
.external-link-btn {
    background: linear-gradient(180deg, #fff 0%, #d4d0c8 100%);
    border: 1px solid #003c74;
    padding: 3px 10px;
    margin-left: 5px;
    margin-right: 10px;
    font-size: 11px;
    font-family: 'Tahoma', sans-serif;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.1s;
    font-weight: bold;
}

.external-link-btn:hover {
    background: linear-gradient(180deg, #fff 0%, #e0ddd5 100%);
}

.external-link-btn:active {
    background: linear-gradient(180deg, #d4d0c8 0%, #fff 100%);
}

/* Iframe Loader */
.iframe-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    color: #666;
    z-index: 10;
    background: #fff;
    padding: 20px 40px;
    border: 2px solid #0054e3;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.iframe-loader::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #0054e3;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Performance optimization - pause animations when tab is hidden */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Prevent animation accumulation on tab switch */
body.tab-hidden * {
    animation-play-state: paused !important;
}


/* Performance: Disable interactions when page is hidden */
body.tab-hidden {
    pointer-events: none;
    user-select: none;
}

/* Optimize GPU usage */
.desktop,
.window,
.taskbar,
.start-menu {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}


/* Mobile Responsive Styles - Force on all mobile devices */
@media (max-width: 768px), (max-height: 768px) and (orientation: landscape) {
}

@media (max-width: 480px) {
}

/* Windows XP Notification */
.xp-notification {
    position: fixed;
    bottom: 50px;
    right: -350px;
    width: 320px;
    background: linear-gradient(180deg, #0054e3 0%, #0041b8 100%);
    border: 2px solid #0054e3;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: Tahoma, sans-serif;
}

.xp-notification.show {
    right: 10px;
}

.xp-notification-header {
    background: linear-gradient(180deg, #0054e3 0%, #0041b8 100%);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #003d99;
}

.xp-notification-title {
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-notification-close {
    background: #ff4444;
    border: 1px solid #cc0000;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    transition: all 0.2s;
}

.xp-notification-close:hover {
    background: #ff6666;
}

.xp-notification-body {
    background: #ece9d8;
    padding: 16px;
    color: #000;
}

.xp-notification-message {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.xp-notification-button {
    background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
    border: 1px solid #003c74;
    padding: 6px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.xp-notification-button:hover {
    background: linear-gradient(180deg, #e0f3ff 0%, #b3d9ff 100%);
}

.xp-notification-button:active {
    background: linear-gradient(180deg, #b3d9ff 0%, #e0f3ff 100%);
}

/* Enhanced tooltip for menu items */
.start-menu-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    background: #ffffcc;
    border: 1px solid #000;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10001;
    pointer-events: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.start-menu-item {
    position: relative;
}


/* CRITICAL MOBILE FIXES - MUST OVERRIDE EVERYTHING */
@media screen and (max-width: 768px) {
    
    .start-menu {
        width: 96vw !important;
        max-width: 96vw !important;
        left: 2vw !important;
        bottom: 45px !important;
        max-height: 85vh !important;
        overflow: visible !important;
    }
    
    .start-menu-body {
        flex-direction: column !important;
        overflow: visible !important;
        max-height: none !important;
    }
    
    .start-menu-left {
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .start-menu-right {
        width: 100% !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 480px) {
}


/* Force mobile scrolling behavior */
@media (hover: none) and (pointer: coarse) {
    .desktop-icons,
    .start-menu-left,
    .start-menu-body {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }
    
    .desktop {
        touch-action: pan-y !important;
    }
}


/* Fix icon selection/hover on mobile */
@media screen and (max-width: 768px) {
    .desktop-icon:hover,
    .desktop-icon:active,
    .desktop-icon:focus {
        background: transparent !important;
        outline: none !important;
    }
    
    .desktop-icon.selected {
        background: rgba(0, 84, 227, 0.3) !important;
        border: 1px solid rgba(0, 84, 227, 0.5) !important;
    }
    
    /* Mobile menu close button - show on mobile only */
    .mobile-menu-close {
        display: flex !important;
        position: absolute !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 28px !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: white !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
        background: rgba(255, 68, 68, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        line-height: 1 !important;
        padding: 0 !important;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 68, 68, 1) !important;
    }
    
    .mobile-menu-close:active {
        background: rgba(200, 50, 50, 1) !important;
    }
}


/* Ultra compact mobile menu - fit everything */
@media screen and (max-width: 768px) {
    .start-menu {
        max-height: 82vh !important;
    }
    
    .start-menu-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .start-menu-left,
    .start-menu-right {
        flex-shrink: 1 !important;
        min-height: 0 !important;
    }
    
    /* Hide subtitles on very small screens to save space */
    .menu-subtitle {
        display: none !important;
    }
    
    .start-menu-item span {
        font-size: 11px !important;
    }
}
