/* 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;
}

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;
}

/* 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); }
}

/* 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;
    }
}