:root {
    /* System colors */
    --scanline-opacity: 0.03;
    --font-family-98: "MS Sans Serif", "Microsoft Sans Serif", sans-serif;
    --border-outset: 1px outset #c0c0c0;
    --border-inset: 1px inset #c0c0c0;
    --bg-98: #c0c0c0;
    --bg-98-hover: #dfdfdf;
    --bg-98-active: #a6a6a6;
    
    /* Icon grid system */
    --icon-size: 56px;
    --icon-spacing: 100px;
    --icon-width: 90px;
    
    /* Additional colors for consistency */
    --text-primary: #000000;
    --text-secondary: #666666;
    --link-color: #000080;
    --link-hover: #0000ff;
    --success-color: #00aa00;
    --info-color: #0088aa;
    
    /* Timing variables */
    --transition-fast: 0.1s ease;
    --boot-delay: 0.2s;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

body, button, input, select, textarea, .window-body, .icon-label, .taskbar {
    font-family: var(--font-family-98);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
}

body {
    overflow: hidden;
    height: 100vh;
    user-select: none;
    background: var(--bg-98);
    font-size: 13px;
    position: relative;
}

/* CRT Effects */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,var(--scanline-opacity)) 2px, rgba(0,0,0,var(--scanline-opacity)) 4px);
    pointer-events: none;
    z-index: 9999;
}

/* Desktop principal */
.desktop {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    filter: contrast(1.1) brightness(0.95) saturate(1.1); /* efecte CRT xulo */
}

/* Efecte de píxels RGB dels monitors antics */
.desktop::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255,0,0,0.03) 33%, transparent 33%),
        radial-gradient(circle at 50% 50%, rgba(0,255,0,0.03) 33%, transparent 33%),
        radial-gradient(circle at 50% 50%, rgba(0,0,255,0.03) 33%, transparent 33%);
    background-size: 3px 3px;
    background-position: 0 0, 1px 1px, 2px 0;
    pointer-events: none;
    z-index: 5000;
    mix-blend-mode: multiply;
}

/* Línies de scan (típiques del CRT) */
.desktop::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0,0,0,0.05) 1px, rgba(0,0,0,0.05) 2px);
    pointer-events: none;
    z-index: 5001;
}

/* Pantalla d'arrencada */
.boot-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    color: #c0c0c0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 10000;
    font-family: "Courier New", "Fixedsys", "Terminal", monospace;
    padding: 20px;
    overflow: hidden;
}

.boot-content {
    text-align: left;
    width: 100%;
    font-size: 16px;
    line-height: 1.2;
}

.boot-logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.boot-version {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #c0c0c0;
}

.boot-messages {
    margin: 1rem 0;
    font-size: 15px;
}

.boot-message {
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: typeIn 0.1s ease-in forwards;
    will-change: opacity; /* Performance optimization */
}

/* Much simpler boot message timing */
.boot-message:nth-child(1) { animation-delay: calc(1 * var(--boot-delay)); }
.boot-message:nth-child(2) { animation-delay: calc(2 * var(--boot-delay)); }
.boot-message:nth-child(3) { animation-delay: calc(3 * var(--boot-delay)); }
.boot-message:nth-child(4) { animation-delay: calc(4 * var(--boot-delay)); }
.boot-message:nth-child(5) { animation-delay: calc(5 * var(--boot-delay)); }
.boot-message:nth-child(6) { animation-delay: calc(6 * var(--boot-delay)); }
.boot-message:nth-child(7) { animation-delay: calc(7 * var(--boot-delay)); }
.boot-message:nth-child(8) { animation-delay: calc(8 * var(--boot-delay)); }
.boot-message:nth-child(9) { animation-delay: calc(9 * var(--boot-delay)); }

.boot-message.ok::after { content: " [OK]"; color: var(--success-color); font-weight: bold; }
.boot-message.done::after { content: " [DONE]"; color: var(--info-color); font-weight: bold; }
.boot-message.error::after { content: " [ERROR]"; color: #aa0000; font-weight: bold; } /* pels errors que sempre surten */

/* Fons de pantalla (guillem approved) */
.wallpaper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: calc(100% - 40px);
    background-image: 
        url('assets/wallpapers/Clouds_(Windows_95).png'), /* el clàssic dels 95 */
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: cover, 4px 4px, 4px 4px;
    background-position: center, 0 0, 2px 2px;
    z-index: -1;
}

/* Icones del desktop - Sistema de grid simplificat */
.desktop-icons {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 1;
    width: calc(100% - 16px); /* Leave some margin */
    height: calc(100% - 48px); /* Leave space for taskbar */
    pointer-events: none; /* només les icones reben esdeveniments */
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 3px;
    text-align: center;
    border: 1px solid transparent;
    background: transparent;
    position: absolute;
    width: var(--icon-width);
    pointer-events: auto;
    transition: var(--transition-fast);
    will-change: background, border; /* Performance optimization */
}

/* Posicionament d'icones - handled by JavaScript now */

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dotted #000080;
}

.desktop-icon.selected {
    background: #000080;
    border: 1px dotted #ffffff;
}

.desktop-icon.selected .icon-label {
    color: #ffffff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.icon-image {
    width: var(--icon-size);
    height: var(--icon-size);
    margin-bottom: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    transform: scale(1);
    transform-origin: center;
}

/* Shortcut arrow */
.desktop-icon .icon-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 10px; height: 10px;
    background: #ffffff;
    border: 1px solid #000000;
    border-right-color: #808080;
    border-bottom-color: #808080;
}

.desktop-icon .icon-image::before {
    content: '↗';
    position: absolute;
    bottom: 1px; left: 1px;
    font-size: 8px;
    color: #000000;
    z-index: 1;
    line-height: 10px;
    font-family: "Fixedsys", "Terminal", monospace;
}

/* Icon Images */
.about-icon { background-image: url('assets/notepad_file-2.png'); }
.music-icon { background-image: url('assets/cd_audio_cd_a-3.png'); }
.tour-icon { background-image: url('assets/calendar-0.png'); }
.contact-icon { background-image: url('assets/modem-4.png'); }
.gallery-icon { background-image: url('assets/kodak_imaging-0.png'); }
.instagram-icon { background-image: url('assets/instagram-icon.svg'); }
.youtube-icon { background-image: url('assets/youtube-icon.svg'); }
.tiktok-icon { background-image: url('assets/tiktok-icon.svg'); }
.spotify-icon { background-image: url('assets/spotify-icon.svg'); }
.recycle-icon { background-image: url('assets/recycle_bin_full_2k-2.png'); }
.users-icon { background-image: url('assets/users-2.png'); }
.notepad-icon { background-image: url('assets/notepad_file-2.png'); }

.icon-label {
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    word-wrap: break-word;
    line-height: 1.1;
    max-width: 80px;
}

/* Universal Button Styling */
.btn-98, .streaming-link, .start-btn, .taskbar-window, .wallpaper-toggle, button {
    background: var(--bg-98);
    border: var(--border-outset);
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.btn-98:hover, .streaming-link:hover, .start-btn:hover, .taskbar-window:hover:not(.active), .wallpaper-toggle:hover {
    background: var(--bg-98-hover);
}

.btn-98:active, .streaming-link:active, .start-btn:active, .wallpaper-toggle:active {
    border: var(--border-inset);
    background: var(--bg-98-active);
    transform: translate(1px, 1px);
    will-change: transform; /* Performance optimization */
}

/* Windows - Enhanced responsiveness */
.window {
    position: absolute;
    z-index: 100;
    resize: both;
    overflow: auto;
    width: 500px;           /* Default width */
    height: 400px;          /* Default height */
    min-width: 250px;
    min-height: 150px;
    filter: contrast(1.05);
    max-width: calc(100vw - 20px); /* Prevent windows from going off-screen */
    max-height: calc(100vh - 60px); /* Leave space for taskbar */
}

.window.active { z-index: 1000; }

.title-bar-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.title-bar-controls button[aria-label="Minimitzar"] {
    padding-bottom: 2px;
}

.window-body {
    font-size: 15px;
    padding-bottom: 24px;
}

.window-body .tree-view {
    margin-bottom: 12px;
}

.window-heading {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: bold;
}

.window-subheading {
    font-size: 15px;
    margin: 8px 0 4px 0;
    color: var(--text-primary);
    font-weight: bold;
}

.window-text {
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text-primary);
    font-size: 15px;
}

/* Media and Content Containers */
.photo-placeholder, .cover-placeholder {
    width: 150px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #666;
    font-size: 12px;
}

.music-content {
    display: flex;
    gap: 12px;
}

.album-cover {
    flex-shrink: 0;
}

.cover-placeholder {
    width: 100px;
    height: 100px;
}

.music-info {
    flex: 1;
}

/* Streaming Links */
.streaming-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.streaming-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    text-decoration: none;
    font-size: 15px;
}

.streaming-link.spotify {
    background: #1DB954;
    color: white;
    border: 1px outset #1DB954;
}

.streaming-link.youtube {
    background: #FF0000;
    color: white;
    border: 1px outset #FF0000;
}

/* Tour Dates */
.tour-dates {
    margin: 8px 0;
}

.tour-date {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid #dfdfdf;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tour-date:last-child {
    border-bottom: none;
}

.tour-date .venue {
    flex: 1;
    font-size: 15px;
    line-height: 1.3;
    min-width: 0;
}

.tour-date .date {
    font-weight: bold;
    font-size: 15px;
    color: var(--text-primary);
    min-width: 80px;
    flex-shrink: 0;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
    order: 2;
}

.ticket-link {
    color: var(--link-color);
    text-decoration: underline;
    font-size: 15px;
}

.ticket-link:hover {
    color: var(--link-hover);
}

/* Contact Form */
.contact-form {
    margin-bottom: 16px;
}

.contact-form label, .contact-form input, .contact-form select, .contact-form textarea, .contact-form button {
    font-size: 15px;
}

/* Users and Lists */
.users-list {
    margin: 12px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px inset #c0c0c0;
    background: #fff;
    padding: 4px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px solid #e6e6e6;
    font-size: 13px;
    background: #fff;
}

.user-item:hover {
    background: #dfdfdf;
}

.user-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-status.online {
    background: #00ff00;
    box-shadow: 0 0 3px #00aa00;
}

.user-status.offline {
    background: #888;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: bold;
    font-size: 13px;
    color: var(--text-primary);
}

.user-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.user-time {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.deleted-items {
    margin: 12px 0;
}

.deleted-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-bottom: 1px solid #dfdfdf;
    font-size: 13px;
}

.file-icon {
    font-size: 16px;
}

.file-name {
    flex: 1;
}

.file-date {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Video Container */
.video-container {
    margin: 12px 0;
    text-align: center;
}

.video-container iframe {
    max-width: 100%;
    max-height: 100%;
    border: none;
}

/* Specific Window Adjustments */
#perbarcelonaWindow {
    min-width: 600px;
    min-height: 400px;
}

#perbarcelonaWindow .window-body {
    padding: 8px;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
}

#perbarcelonaWindow .video-container {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#perbarcelonaWindow .sunken-panel {
    width: 100%;
    height: 100%;
    min-height: 360px;
}

#perbarcelonaWindow iframe {
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

#tourWindow {
    min-width: 420px;
    max-width: 500px;
    overflow: hidden;
}

#tourWindow .window-body {
    padding: 12px;
    max-height: 400px;
}

#tourWindow .tour-dates {
    max-height: 300px;
    padding-right: 4px;
}

#statsWindow .stats-value {
    font-weight: bold;
    color: #000080;
    font-family: "Courier New", monospace;
}

#statsWindow .field-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    height: 40px;
    background: var(--bg-98);
    border-top: 2px solid #ffffff;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #404040;
    display: flex;
    align-items: center;
    z-index: 10000;
    padding: 2px 4px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.2);
}

.start-menu {
    margin-right: 6px;
}

.start-btn {
    padding: 4px 12px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    min-width: 80px;
}

.start-logo {
    background: linear-gradient(45deg, #ff0000, #ff8800, #ffff00, #00ff00);
    color: white;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 2px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.taskbar-windows {
    flex: 1;
    display: flex;
    gap: 3px;
    padding: 0 8px;
    overflow-x: auto;
    height: 32px;
    align-items: center;
}

.taskbar-window {
    padding: 4px 12px;
    font-size: 14px;
    max-width: 180px;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 28px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
}

.taskbar-window-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.taskbar-window.active {
    border: var(--border-inset);
    background: var(--bg-98-active);
    transform: translate(1px, 1px);
}

.status-bar {
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    border: var(--border-inset);
    background: var(--bg-98);
    margin-left: 6px;
    min-width: 120px;
}

.time {
    font-size: 14px;
    font-weight: bold;
    padding: 0 6px;
    color: var(--text-primary);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.view-counter {
    font-size: 13px;
    padding: 0 6px;
    color: var(--text-primary);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
    border-right: 1px solid #808080;
    border-left: 1px solid #ffffff;
    margin-right: 4px;
    background: var(--bg-98);
}

.wallpaper-toggle {
    font-size: 13px;
    padding: 2px 6px;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: #c0c0c0; border: 1px inset #c0c0c0; }
::-webkit-scrollbar-thumb { background: #808080; border: 1px outset #808080; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }
::-webkit-scrollbar-corner { background: #c0c0c0; }

/* Utility Classes */
.hidden { display: none !important; }
.no-select { user-select: none; }
.pointer { cursor: pointer; }
.fade-in { animation: fadeIn 0.3s ease-in; }
.slide-up { animation: slideUp 0.3s ease-out; }

/* Animations */
@keyframes typeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive Design for Different Screen Sizes */

/* Large desktop screens - 1440p and up (no changes needed) */

/* Medium desktop screens - 1080p to 1440p */
@media (max-width: 1440px) and (min-width: 1081px) {
    :root {
        --icon-spacing: 85px;
        --icon-width: 80px;
        --icon-size: 48px;
    }
    
    body { font-size: 12px; }
    
    .window {
        min-width: 280px;
    }
    
    .window-body {
        font-size: 14px;
    }
    
    .window-heading {
        font-size: 15px;
    }
    
    .window-subheading,
    .window-text {
        font-size: 14px;
    }
    
    .streaming-link {
        font-size: 14px;
        padding: 2px 5px;
    }
    
    .tour-date .venue,
    .tour-date .date {
        font-size: 14px;
    }
    
    .ticket-link {
        font-size: 14px;
    }
    
    .icon-label {
        font-size: 12px;
        max-width: 75px;
    }
    
    .taskbar-window {
        max-width: 160px;
        min-width: 100px;
        font-size: 13px;
    }
    
    .photo-placeholder, .cover-placeholder {
        width: 130px;
        height: 100px;
    }
    
    .cover-placeholder {
        width: 90px;
        height: 90px;
    }
}

/* Small desktop screens - 1080p */
@media (max-width: 1080px) and (min-width: 769px) {
    :root {
        --icon-spacing: 80px;
        --icon-width: 75px;
        --icon-size: 45px;
    }
    
    body { font-size: 12px; }
    
    .window {
        min-width: 260px;
    }
    
    .window-body {
        font-size: 13px;
        padding: 8px;
        padding-bottom: 20px;
    }
    
    .window-heading {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .window-subheading,
    .window-text {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .streaming-link {
        font-size: 13px;
        padding: 1px 4px;
        gap: 3px;
    }
    
    .tour-date {
        gap: 10px;
        padding: 5px 3px;
        margin-bottom: 6px;
    }
    
    .tour-date .venue {
        font-size: 13px;
    }
    
    .tour-date .date {
        font-size: 13px;
        min-width: 75px;
    }
    
    .ticket-link {
        font-size: 13px;
    }
    
    .contact-form label, 
    .contact-form input, 
    .contact-form select, 
    .contact-form textarea, 
    .contact-form button {
        font-size: 13px;
    }
    
    .user-item {
        padding: 5px 3px;
        font-size: 12px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .user-description,
    .user-time {
        font-size: 11px;
    }
    
    .icon-label {
        font-size: 11px;
        max-width: 70px;
    }
    
    .taskbar {
        height: 38px;
        padding: 2px 3px;
    }
    
    .start-btn {
        font-size: 13px;
        padding: 3px 10px;
        height: 30px;
        min-width: 75px;
    }
    
    .start-logo {
        width: 18px;
        height: 18px;
        font-size: 13px;
    }
    
    .taskbar-windows {
        height: 30px;
        gap: 2px;
    }
    
    .taskbar-window {
        max-width: 150px;
        min-width: 90px;
        font-size: 12px;
        height: 26px;
        padding: 3px 10px;
        padding-left: 26px;
    }
    
    .taskbar-window-icon {
        left: 5px;
        width: 16px;
        height: 16px;
    }
    
    .status-bar {
        height: 30px;
        min-width: 110px;
        padding: 0 6px;
    }
    
    .time {
        font-size: 13px;
        padding: 0 5px;
    }
    
    .view-counter {
        font-size: 12px;
        padding: 0 5px;
    }
    
    .wallpaper-toggle {
        font-size: 12px;
        padding: 2px 5px;
        height: 18px;
    }
    
    .photo-placeholder, .cover-placeholder {
        width: 120px;
        height: 90px;
        font-size: 11px;
    }
    
    .cover-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .music-content {
        gap: 10px;
    }
    
    /* Specific window adjustments for 1080p */
    #perbarcelonaWindow {
        min-width: 500px;
        min-height: 350px;
    }
    
    #perbarcelonaWindow .sunken-panel {
        min-height: 300px;
    }
    
    #tourWindow {
        min-width: 380px;
        max-width: 450px;
    }
    
    #tourWindow .window-body {
        padding: 10px;
        max-height: 350px;
    }
    
    #tourWindow .tour-dates {
        max-height: 250px;
        padding-right: 3px;
    }
    
    /* Countdown adjustments for 1080p */
    .countdown-display {
        padding: 12px 6px;
        margin: 12px 0;
    }
    
    .countdown-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .countdown-number {
        font-size: 16px;
        padding: 6px 5px;
        min-width: 40px;
    }
    
    .countdown-separator {
        font-size: 20px;
        margin: 0 3px;
    }
    
    .countdown-unit-label {
        font-size: 11px;
    }
}

/* Mobile and tablet responsiveness */
@media (max-width: 768px) {
    :root {
        --icon-spacing: 80px;
        --icon-width: 70px;
        --icon-size: 40px;
    }
    
    body { font-size: 14px; }
    .boot-logo { font-size: 2rem; }
    .desktop-icons { top: 10px; left: 10px; }
    .icon-label { font-size: 10px; }
    
    .window {
        min-width: 280px;
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        left: 10px !important;
        top: 10px !important;
        resize: none;
    }
    
    #perbarcelonaWindow, #tourWindow, #statsWindow {
        min-width: 280px;
        width: calc(100vw - 20px);
    }
    
    #perbarcelonaWindow iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        max-height: calc(100vh - 200px);
    }
    
    .music-content { flex-direction: column; gap: 12px; }
    .cover-placeholder { width: 120px; height: 120px; }
    
    .tour-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 4px;
        margin-bottom: 12px;
    }
    
    .tour-date .date {
        min-width: auto;
        margin-bottom: 4px;
        font-size: 14px;
        text-align: right;
        align-self: flex-end;
        order: 2;
    }
    
    .tour-date .venue {
        font-size: 13px;
        line-height: 1.4;
        order: 1;
    }
    
    .taskbar { height: 60px; padding: 4px 6px; }
    .start-btn { font-size: 14px; padding: 6px 12px; height: 48px; min-width: 100px; }
    .start-logo { width: 20px; height: 20px; font-size: 14px; }
    .taskbar-windows { height: 48px; gap: 4px; }
    .taskbar-window { font-size: 12px; padding: 6px 12px; height: 40px; max-width: 140px; min-width: 100px; }
    .status-bar { height: 48px; min-width: 140px; padding: 0 12px; }
    .view-counter { font-size: 10px; padding: 0 4px; }
    .time { font-size: 14px; }
}

@media (max-width: 480px) {
    :root {
        --icon-spacing: 70px;
        --icon-width: 60px;
        --icon-size: 32px;
    }
    
    .icon-label { font-size: 9px; }
    
    .window {
        min-width: 260px;
        width: calc(100vw - 10px);
        height: calc(100vh - 90px);
        left: 5px !important;
        top: 5px !important;
    }
    
    #perbarcelonaWindow, #tourWindow, #statsWindow {
        min-width: 260px;
        width: calc(100vw - 10px);
    }
    
    #perbarcelonaWindow iframe {
        max-height: calc(100vh - 150px);
    }
    
    .photo-placeholder, .cover-placeholder {
        width: 100px;
        height: 75px;
        font-size: 10px;
    }
    
    .taskbar {
        height: 70px;
        flex-wrap: wrap;
        align-content: center;
    }
    
    .taskbar-windows {
        order: 2;
        width: 100%;
        height: 35px;
        margin-top: 2px;
    }
    
    .start-menu { order: 1; margin-right: auto; }
    .status-bar { order: 3; margin-left: auto; height: 35px; min-width: 120px; }
    .view-counter { font-size: 9px; padding: 0 3px; }
}

/* Countdown Timer Styles */
.countdown-container {
    text-align: center;
    padding: 12px;
}

.countdown-display {
    background: #000;
    border: var(--border-inset);
    margin: 16px 0;
    padding: 16px 8px;
    border-radius: 2px;
}

.countdown-label {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-number {
    background: linear-gradient(180deg, #ff3333 0%, #cc0000 100%);
    border: 2px outset #ff3333;
    border-radius: 4px;
    padding: 8px 6px;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    min-width: 45px;
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.3), 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
}

.digit-roll {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.digit-roll.rolling {
    animation: digitRoll 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes digitRoll {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.countdown-separator {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    margin: 0 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 30px rgba(0, 255, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); }
}

.countdown-unit-label {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar icon for countdown */
.calendar-icon {
    background-image: url('assets/calendar-0.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Note icon for countdown */
.note-icon {
    background-image: url('assets/note-2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive countdown for mobile */
@media (max-width: 768px) {
    .countdown-timer {
        gap: 4px;
    }
    
    .countdown-number {
        font-size: 14px;
        padding: 6px 4px;
        min-width: 35px;
    }
    
    .countdown-separator {
        font-size: 18px;
        margin: 0 2px;
    }
    
    .countdown-unit-label {
        font-size: 9px;
    }
}

/* Gallery Styles */
.gallery-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #c0c0c0;
    margin-bottom: 10px;
    height: 50px;
    flex-shrink: 0;
}

.gallery-header h2 {
    margin: 0;
    font-size: 14px;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-nav-btn {
    background: var(--bg-98);
    border: var(--border-outset);
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-family-98);
}

.gallery-nav-btn:hover {
    background: var(--bg-98-hover);
}

.gallery-nav-btn:active {
    border: var(--border-inset);
    background: var(--bg-98-active);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.photo-counter {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: center;
}

.gallery-main {
    height: 650px;
    display: block;
    flex-shrink: 0;
}

.photo-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.main-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 2px solid #808080;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gallery-thumbnails {
    padding: 10px 0;
    border-top: 1px solid #c0c0c0;
    height: 90px;
    flex-shrink: 0;
}

.thumbnails-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    cursor: pointer;
    border: 2px solid #808080;
    object-fit: cover;
    transition: border-color 0.1s;
}

.thumbnail:hover {
    border-color: #0000ff;
}

.thumbnail.active {
    border-color: #000080;
    border-width: 3px;
}

.thumbnail.active:hover {
    border-color: #0000ff;
}

/* Scrollbar styling for thumbnails */
.thumbnails-container::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}
