:root {
    --bg-sky-top: #e0e0e0;
    --bg-sky-bot: #ffffff;
    --mountain-1: #2a2a2a;
    --mountain-2: #1a1a1a;
    --mountain-3: #000000;

    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;

    --accent: #ffffff;
    --admin-accent: #ef4444;
}

/* Day/Night Transition */
body {
    transition: background 0.5s;
}

body.dark-mode {
    --bg-sky-top: #0f172a;
    --bg-sky-bot: #1e293b;
    --mountain-1: #0f172a;
    --mountain-2: #020617;
    --mountain-3: #000000;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --text-main: #e2e8f0;
}

body.dark-mode .sun {
    background: transparent;
    box-shadow: -15px 10px 0 0 #e2e8f0;
    top: 15%;
    right: 15%;
    width: 80px;
    height: 80px;
    transform: rotate(-15deg);
}

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

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: #000;
}

/* --- LANDSCAPE BACKGROUND --- */
.landscape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, var(--bg-sky-top), var(--bg-sky-bot));
}

.sun {
    position: absolute;
    top: 10%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    opacity: 0.8;
}

/* Mountains using clip-path for sharp silhouette look */
.mountain-range {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.back {
    height: 45%;
    background: var(--mountain-1);
    clip-path: polygon(0% 100%, 0% 30%, 20% 60%, 40% 20%, 60% 50%, 80% 30%, 100% 60%, 100% 100%);
    opacity: 0.8;
}

.mid {
    height: 35%;
    background: var(--mountain-2);
    clip-path: polygon(0% 100%, 10% 40%, 30% 80%, 50% 30%, 80% 70%, 100% 50%, 100% 100%);
}

.front {
    height: 20%;
    background: var(--mountain-3);
    clip-path: polygon(0% 100%, 0% 40%, 15% 70%, 35% 20%, 60% 60%, 80% 40%, 100% 80%, 100% 100%);
}

.mist {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

/* --- DESKTOP UI --- */
.desktop {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Widgets */
.widget-container.top-left {
    position: absolute;
    top: 3rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    min-width: 200px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.clock-widget {
    text-align: center;
}

#clock-time {
    font-size: 3rem;
    font-weight: 300;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

#clock-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-widget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    /* Green */
    border-radius: 50%;
    box-shadow: 0 0 5px #4ade80;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
}

/* Center Hero */
.center-hero {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    mix-blend-mode: exclusion;
    /* Cool effect against sky/mountains */
}

.desktop-title {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.desktop-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- WINDOWS --- */
.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 600px;
    height: 400px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 1;
    z-index: 100;
}

.window.hidden {
    transform: translate(-50%, -40%) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.window-header {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    position: relative;
    user-select: none;
    cursor: grab;
    /* Indicates draggable */
}

.window-header:active {
    cursor: grabbing;
}

.window-controls {
    position: absolute;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.win-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
    font-size: 0;
    /* Hide text characters like - or + */
    display: inline-block;
}

.win-btn:hover {
    opacity: 0.8;
}

.close {
    background: #ff5f56;
    /* Mac Red */
}

.min,
.minimize {
    background: #ffbd2e;
    /* Mac Yellow */
}

.max,
.expand {
    background: #27c93f;
    /* Mac Green */
}

.window-title {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
}

.window-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.window-content h2 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.window-content p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Project List in Window */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    gap: 1rem;
    transition: background 0.2s;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.p-icon {
    font-size: 1.5rem;
}

.p-info {
    flex: 1;
}

.p-info h3 {
    font-size: 1rem;
    margin: 0;
}

.p-info p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
}

.p-link {
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* --- MUSIC PLAYER (Refined) --- */
.music-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.album-art-container {
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
    position: relative;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    /* Symmetric gradient so it spins evenly */
    background: repeating-radial-gradient(#111 0,
            #111 2px,
            #222 3px,
            #222 4px);
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Static Glare (Overlay on Container instead) */
.album-art-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 5;
}

.vinyl-label {
    width: 35%;
    height: 35%;
    background: url('https://images.unsplash.com/photo-1493225255756-d9584f8606e9?auto=format&fit=crop&w=300&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    box-shadow: 0 0 0 3px #111;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.vinyl-label::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #f5f5f5;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.spinning {
    animation: spinVinyl 4s linear infinite;
}

@keyframes spinVinyl {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.track-info {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.track-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 2rem;
    cursor: pointer;
    position: relative;
    overflow: visible;
    /* Allow handle to protrude */
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: width 0.1s linear;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.play-btn {
    width: 64px;
    height: 64px;
    background: #fff;
    color: #1e1e2e;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    /* Optical centering for Play icon */
}

.play-btn:hover {
    transform: scale(1.1) rotate(0deg) !important;
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    color: #6366f1;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 80%;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
}

.volume-container input {
    flex: 1;
    cursor: pointer;
    height: 4px;
}

/* Playlist Hidden */
.playlist {
    display: none;
}

/* --- CONTACT FORM --- */
.contact-content {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
}

.form-group label {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 0.2rem;
}

/* Floating Label Logic */
.form-group textarea+label {
    top: 1rem;
    transform: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.6rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: #0f172a;
    /* Match window bg or transparent if blurry */
    font-weight: 600;
}

.dock-container {
    position: absolute;
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2000;
    /* Ensure dock is always accessible */
}

.dock {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    align-items: center;
}

.dock-item {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #fff;
}

.dock-item:hover {
    transform: translateY(-10px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.dock-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.tooltip {
    position: absolute;
    top: -40px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.dock-item:hover .tooltip {
    opacity: 1;
}

/* --- ADMIN PANEL STYLES --- */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#admin-pass {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    color: #fff;
    border-radius: 6px;
    width: 100%;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

#admin-pass:focus {
    border-color: var(--admin-accent);
}

.btn-primary {
    background: var(--admin-accent);
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    opacity: 0.9;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
    border-color: red !important;
}

/* Dashboard */
.dashboard-content {
    padding: 1.5rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dash-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.dash-card h4 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Fake Chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.bar {
    flex: 1;
    background: var(--admin-accent);
    opacity: 0.6;
    border-radius: 2px;
}

.stat-big {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.stat-sub {
    font-size: 0.8rem;
    color: #555;
}

/* Inbox List */
.inbox-list {
    list-style: none;
}

.inbox-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    cursor: pointer;
}

.inbox-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 5px;
}

.sender {
    font-weight: 600;
    color: #fff;
}

.subject {
    color: var(--text-muted);
}

/* Tools */
.dash-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

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

/* CMS Styles */
.cms-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    color: #fff;
    border-radius: 4px;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

.cms-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.cms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.cms-delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.cms-delete-btn:hover {
    background: #dc2626;
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FILE EXPLORER --- */
.explorer-sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--glass-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.explorer-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.explorer-sidebar li {
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background 0.2s;
}

.explorer-sidebar li:hover,
.explorer-sidebar li.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.explorer-main {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1.5rem;
}

.explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.explorer-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.explorer-item .icon {
    font-size: 2.5rem;
}

.explorer-item .name {
    font-size: 0.8rem;
    color: #fff;
    text-align: center;
    word-break: break-word;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .desktop {
        padding: 1rem;
    }

    /* Windows: Nearly Full Screen */
    .window {
        width: 94% !important;
        height: 85% !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .window.hidden {
        transform: translate(-50%, 100%) scale(0.5) !important;
    }

    .window.maximized {
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0;
    }

    /* Hero Text */
    .desktop-title {
        font-size: 3rem;
        line-height: 1.1;
    }

    .desktop-subtitle {
        font-size: 0.9rem;
    }

    /* Widgets: Stacked & Compact */
    .widget-container.top-left {
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        width: 100%;
        top: 1rem;
        gap: 0.5rem;
    }

    .widget.clock-widget {
        padding: 0.5rem 1rem;
    }

    #clock-time {
        font-size: 2rem;
    }

    /* Hide secondary widgets on tiny screens to save space */
    .widget.status-widget {
        display: none;
    }

    /* Dock: Compact & Scrollable */
    .dock-container {
        bottom: 1rem;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .dock {
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        justify-content: space-around;
        /* Distribute evenly */
        overflow-x: auto;
        /* Scroll if too many items */
    }

    .dock-item {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        flex-shrink: 0;
        /* Prevent squishing */
    }

    /* Disable Tooltips on Touch */
    .tooltip {
        display: none;
    }

    /* Explorer: Compact Mode */
    .explorer-sidebar {
        width: 50px;
        padding: 0.5rem 0.2rem;
        align-items: center;
    }

    .explorer-sidebar li {
        font-size: 0;
        /* Hide text */
        text-align: center;
        padding: 0.5rem;
        justify-content: center;
        display: flex;
    }

    .explorer-sidebar li::before {
        content: attr(data-icon);
        /* Fallback if I added data-icon */
        font-size: 1.2rem;
    }

    /* Since I didn't add data-icon, let's just show the first character (emoji) effectively via clipping or just rely on the layout */
    .explorer-sidebar li {
        overflow: hidden;

        .delay-1 {
            animation-delay: 0.2s;
        }

        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- FILE EXPLORER --- */
        .explorer-sidebar {
            width: 200px;
            background: rgba(0, 0, 0, 0.2);
            border-right: 1px solid var(--glass-border);
            padding: 1rem;
            display: flex;
            flex-direction: column;
        }

        .explorer-sidebar ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .explorer-sidebar li {
            padding: 0.5rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--text-muted);
            transition: background 0.2s;
        }

        .explorer-sidebar li:hover,
        .explorer-sidebar li.active {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .explorer-main {
            flex: 1;
            padding: 1.5rem;
            overflow-y: auto;
        }

        .explorer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 1.5rem;
        }

        .explorer-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            padding: 1rem 0.5rem;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .explorer-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .explorer-item .icon {
            font-size: 2.5rem;
        }

        .explorer-item .name {
            font-size: 0.8rem;
            color: #fff;
            text-align: center;
            word-break: break-word;
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .desktop {
                padding: 1rem;
            }

            /* Windows: Nearly Full Screen */
            .window {
                width: 94% !important;
                height: 85% !important;
                top: 50% !important;
                left: 50% !important;
                transform: translate(-50%, -50%) !important;
            }

            .window.hidden {
                transform: translate(-50%, 100%) scale(0.5) !important;
            }

            .window.maximized {
                width: 100vw !important;
                height: 100vh !important;
                border-radius: 0;
            }

            /* Hero Text */
            .desktop-title {
                font-size: 3rem;
                line-height: 1.1;
            }

            .desktop-subtitle {
                font-size: 0.9rem;
            }

            /* Widgets: Stacked & Compact */
            .widget-container.top-left {
                left: 50%;
                transform: translateX(-50%);
                align-items: center;
                width: 100%;
                top: 1rem;
                gap: 0.5rem;
            }

            .widget.clock-widget {
                padding: 0.5rem 1rem;
            }

            #clock-time {
                font-size: 2rem;
            }

            /* Hide secondary widgets on tiny screens to save space */
            .widget.status-widget {
                display: none;
            }

            /* Dock: Compact & Scrollable */
            .dock-container {
                bottom: 1rem;
                width: 90%;
                left: 50%;
                transform: translateX(-50%);
            }

            .dock {
                gap: 0.5rem;
                padding: 0.5rem;
                width: 100%;
                justify-content: space-around;
                /* Distribute evenly */
                overflow-x: auto;
                /* Scroll if too many items */
            }

            .dock-item {
                width: 44px;
                height: 44px;
                font-size: 1.2rem;
                flex-shrink: 0;
                /* Prevent squishing */
            }

            /* Disable Tooltips on Touch */
            .tooltip {
                display: none;
            }

            /* Explorer: Compact Mode */
            .explorer-sidebar {
                width: 50px;
                padding: 0.5rem 0.2rem;
                align-items: center;
            }

            .explorer-sidebar li {
                font-size: 0;
                /* Hide text */
                text-align: center;
                padding: 0.5rem;
                justify-content: center;
                display: flex;
            }

            .explorer-sidebar li::before {
                content: attr(data-icon);
                width: 36px;
                height: 36px;
            }
        }
    }

    /* --- MUSIC PLAYER --- */
    .music-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        height: 100%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    }

    .album-art-container {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem;
        position: relative;
        padding: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vinyl-record {
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 30%, #2a2a2a, #000);
        border-radius: 50%;
        position: relative;
        box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 20px rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Vinyl Grooves */
    .vinyl-record::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 90%;
        border-radius: 50%;
        background: transparent;
        border: 2px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 0 0 4px transparent,
            0 0 0 8px rgba(255, 255, 255, 0.05),
            0 0 0 12px transparent,
            0 0 0 16px rgba(255, 255, 255, 0.05),
            0 0 0 20px transparent,
            0 0 0 24px rgba(255, 255, 255, 0.05);
    }

    .vinyl-label {
        width: 35%;
        height: 35%;
        background: url('https://images.unsplash.com/photo-1493225255756-d9584f8606e9?auto=format&fit=crop&w=300&q=80');
        background-size: cover;
        background-position: center;
        border-radius: 50%;
        position: absolute;
        z-index: 2;
        box-shadow: 0 0 0 3px #111;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .vinyl-label::after {
        content: '';
        width: 12px;
        height: 12px;
        background: #f5f5f5;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .spinning {
        animation: spinVinyl 6s linear infinite;
    }

    @keyframes spinVinyl {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .track-info {
        text-align: center;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .track-info h3 {
        margin: 0;
        font-size: 1.4rem;
        color: #fff;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-info p {
        margin: 0.4rem 0 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 400;
    }

    .progress-container {
        width: 100%;
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-bottom: 2rem;
        cursor: pointer;
        position: relative;
        overflow: visible;
        /* Allow handle to protrude */
    }

    .progress-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #6366f1, #ec4899);
        border-radius: 10px;
        position: relative;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
        transition: width 0.1s linear;
    }

    .progress-bar::after {
        content: '';
        position: absolute;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: opacity 0.2s;
    }

    .progress-container:hover .progress-bar::after {
        opacity: 1;
    }

    .music-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .control-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }

    .control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .control-btn:active {
        transform: translateY(0);
    }

    .play-btn {
        width: 65px;
        height: 65px;
        background: linear-gradient(135deg, #6366f1, #ec4899);
        color: #fff;
        border: none;
        font-size: 1.5rem;
        box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    }

    .play-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
        background: linear-gradient(135deg, #595cd9, #db3e8c);
    }

    .volume-container {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 80%;
        color: rgba(255, 255, 255, 0.7);
        background: rgba(0, 0, 0, 0.2);
        padding: 8px 16px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .volume-container input {
        flex: 1;
        cursor: pointer;
        height: 4px;
        -webkit-appearance: none;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .volume-container input::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .playlist {
        margin-top: 1rem;
        width: 100%;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s;
    }

    /* Scrollbar for music content */
    .music-content::-webkit-scrollbar {
        width: 4px;
    }

    .os-logo {
        font-size: 2.5rem;
        font-weight: 800;
        background: linear-gradient(135deg, #6366f1, #a855f7);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        /* Fallback standard */
        animation: heartbeat 2s ease-in-out infinite;
        z-index: 2;
    }

    /* NO Text, NO Bar - Ultra Minimal */
    .boot-title,
    .boot-bar-container,
    .boot-status,
    .boot-bar {
        display: none;
    }

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

        100% {
            transform: rotate(360deg);
        }
    }

    @keyframes heartbeat {

        0%,
        100% {
            transform: scale(1);
            opacity: 0.8;
        }

        50% {
            transform: scale(1.1);
            opacity: 1;
        }
    }

    /* --- FILE EXPLORER --- */
    .explorer-sidebar {
        width: 200px;
        background: rgba(0, 0, 0, 0.2);
        border-right: 1px solid var(--glass-border);
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }

    .explorer-sidebar ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .explorer-sidebar li {
        padding: 0.5rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9rem;
        color: var(--text-muted);
        transition: background 0.2s;
    }

    .explorer-sidebar li:hover,
    .explorer-sidebar li.active {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .explorer-main {
        flex: 1;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .explorer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1.5rem;
    }

    .explorer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        padding: 1rem 0.5rem;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .explorer-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .explorer-item .icon {
        font-size: 2.5rem;
    }

    .explorer-item .name {
        font-size: 0.8rem;
        color: #fff;
        text-align: center;
        word-break: break-word;
    }

    /* Mobile Adjustments */
    @media (max-width: 768px) {
        .desktop {
            padding: 1rem;
        }

        /* Windows: Nearly Full Screen */
        .window {
            width: 94% !important;
            height: 85% !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
        }

        .window.hidden {
            transform: translate(-50%, 100%) scale(0.5) !important;
        }

        .window.maximized {
            width: 100vw !important;
            height: 100vh !important;
            border-radius: 0;
        }

        /* Hero Text */
        .desktop-title {
            font-size: 3rem;
            line-height: 1.1;
        }

        .desktop-subtitle {
            font-size: 0.9rem;
        }

        /* Widgets: Stacked & Compact */
        .widget-container.top-left {
            left: 50%;
            transform: translateX(-50%);
            align-items: center;
            width: 100%;
            top: 1rem;
            gap: 0.5rem;
        }

        .widget.clock-widget {
            padding: 0.5rem 1rem;
        }

        #clock-time {
            font-size: 2rem;
        }

        /* Hide secondary widgets on tiny screens to save space */
        .widget.status-widget {
            display: none;
        }

        /* Dock: Compact & Scrollable */
        .dock-container {
            bottom: 1rem;
            width: 90%;
            left: 50%;
            transform: translateX(-50%);
        }

        .dock {
            gap: 0.5rem;
            padding: 0.5rem;
            width: 100%;
            justify-content: space-around;
            /* Distribute evenly */
            overflow-x: auto;
            /* Scroll if too many items */
        }

        .dock-item {
            width: 44px;
            height: 44px;
            font-size: 1.2rem;
            flex-shrink: 0;
            /* Prevent squishing */
        }

        /* Disable Tooltips on Touch */
        .tooltip {
            display: none;
        }

        /* Explorer: Compact Mode */
        .explorer-sidebar {
            width: 50px;
            padding: 0.5rem 0.2rem;
            align-items: center;
        }

        .explorer-sidebar li {
            font-size: 0;
            /* Hide text */
            text-align: center;
            padding: 0.5rem;
            justify-content: center;
            display: flex;
        }

        .explorer-sidebar li::before {
            content: attr(data-icon);
            /* Fallback if I added data-icon */
            font-size: 1.2rem;
        }
    }

    .delay-1 {
        animation-delay: 0.2s;
    }

    @keyframes fadeUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes floatLogo {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }