/* Main Styles */
:root {
    --taskbar-height: 30px;
    --window-border: 3px;
    --xp-blue: #316AC5;
    --xp-blue-light: #4A8FDB;
    --xp-blue-dark: #1E5AAF;
    --xp-orange: #EF8537;
    --xp-orange-dark: #D86B20;
    --xp-gray: #ECE9D8;
    --xp-gray-dark: #D4D0C8;
    --xp-motion-fast: 130ms;
    --xp-motion-window: 220ms;
    --xp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --xp-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

body {
    background: #000;
    overflow: hidden;
    position: relative;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* Selection Overlay */
.selection-overlay {
    position: absolute;
    border: 1px dotted #fff;
    background: rgba(0, 84, 227, 0.2);
    pointer-events: none;
    display: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background-color: var(--xp-gray);
}

::-webkit-scrollbar-track {
    background-color: var(--xp-gray);
}

::-webkit-scrollbar-thumb {
    background-color: #d4d0c8;
    border: 1px solid #a0a0a0;
    box-shadow: inset 1px 1px 0 #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #b0b0b0;
}

::-webkit-scrollbar-button {
    background-color: var(--xp-gray);
    border: 1px solid #a0a0a0;
    width: 16px;
    height: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--xp-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tooltip Styles */
.dynamic-tooltip {
    position: absolute;
    background: #FFFFE1;
    border: 1px solid #000;
    padding: 2px 4px;
    font-size: 11px;
    font-family: 'Tahoma', sans-serif;
    pointer-events: none;
    z-index: 10000;
    display: none;
}

.dynamic-tooltip-style {
    box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* Landscape Block */
#landscape-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--xp-blue);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.landscape-message {
    margin-top: 20px;
    font-size: 16px;
    font-family: 'Tahoma', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --taskbar-height: 40px;
    }
}

/* Print styles */
@media print {
    body {
        display: none;
    }
}
