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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: #000;
    color: white;
}

/* Desktop */
.desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('wallpaper.jpg') center/cover no-repeat;
    transition: filter 0.3s ease;
}

.desktop .icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 10px;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: transform 0.2s;
    user-select: none;
}

.desktop .icon:hover {
    transform: scale(1.1);
}

.desktop-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.desktop .icon span {
    font-size: 12px;
    text-align: center;
    word-break: break-word;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
    z-index: 10000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #000;
}

.apple-menu {
    font-size: 16px;
    margin-right: 15px;
    cursor: pointer;
    color: #000;
}

.menu-item {
    margin-right: 15px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    color: #000;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.status-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: #000;
}

/* Dock Styles */
.dock-container {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 9999;
    pointer-events: none;
}

.dock-el {
    height: 58px;
    padding: 8px 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 
        inset 0 0 0 0.2px rgba(255, 255, 255, 0.7),
        0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
}

.dock-item {
    width: auto;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 4px;
    position: relative;
}

.dock-button {
    background: transparent;
    border: none;
    outline: none;
    cursor: default;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.dock-button img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    transition: transform 0.2s ease;
    transform-origin: bottom center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dock-tooltip {
    position: absolute;
    top: -40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

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

.dock-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    align-self: center;
}

/* CSS Variables */
:root {
    --accent-color: #007AFF;
    --bg-color: #ffffff;
    --text-color: #000000;
}

/* Window Animation */
@keyframes windowAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Selection color */
::selection {
    background-color: var(--accent-color);
    color: white;
}

/* Menu Dropdown Animations */
@keyframes menuDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes controlCenterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spotlightFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Menu Dropdown Styling */
.menu-dropdown {
    position: fixed;
    background: var(--dropdown-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 9999;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.dropdown-section {
    padding: 6px 0;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 6px 0;
}

.menu-row {
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-color, #000);
    cursor: default;
    transition: background 0.1s ease;
    position: relative;
}

.menu-row:not(.disabled):hover {
    background: rgba(0, 122, 255, 0.1);
}

.menu-row.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.menu-shortcut {
    color: #666;
    font-size: 13px;
    margin-left: 20px;
}

.has-submenu {
    position: relative;
}

.submenu-indicator {
    font-size: 10px;
    color: #666;
    margin-left: 20px;
}

.submenu {
    position: fixed;
    background: var(--dropdown-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

/* Control Center */
.control-center {
    position: fixed;
    background: var(--dropdown-bg, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 12px;
    width: 280px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10000;
}

.control-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.control-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.control-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 12px;
}

.control-icon {
    width: 28px;
    text-align: center;
    font-size: 16px;
}

.control-row span {
    flex: 1;
    font-size: 14px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007AFF;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Slider Input */
.control-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.slider-input {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #007AFF 0%, #007AFF var(--value, 50%), rgba(0, 0, 0, 0.1) var(--value, 50%));
    border-radius: 2px;
    outline: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Space Dots */
.space-dots {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.space-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.space-dot.active {
    background: #007AFF;
    transform: scale(1.2);
}

/* Now Playing */
.now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.now-playing-info {
    flex: 1;
}

.track-name {
    font-size: 14px;
    font-weight: 500;
}

.artist-name {
    font-size: 12px;
    color: #666;
}

/* Spotlight */
.spotlight {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background: var(--dropdown-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100000;
    overflow: hidden;
}

.spotlight-search {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spotlight-search i {
    font-size: 20px;
    color: #666;
    margin-right: 12px;
}

.spotlight-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 18px;
    color: var(--text-color, #000);
}

.spotlight-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.spotlight-category {
    padding: 8px 20px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spotlight-result {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
}

.spotlight-result:hover {
    background: rgba(0, 122, 255, 0.1);
}

.spotlight-result i {
    width: 20px;
    text-align: center;
    color: #007AFF;
}

/* Status Menu */
.status-menu {
    position: fixed;
    background: var(--dropdown-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.volume-menu .menu-row {
    padding: 12px 20px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #007AFF 0%, #007AFF var(--value, 70%), rgba(0, 0, 0, 0.1) var(--value, 70%));
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support */
.dark-mode {
    --text-color: #fff;
    --menu-bar-bg: rgba(40, 40, 40, 0.8);
    --dropdown-bg: rgba(50, 50, 50, 0.95);
}

.dark-mode .menu-row {
    color: #fff;
}

.dark-mode .menu-shortcut {
    color: #aaa;
}

.dark-mode .dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .spotlight-category {
    color: #aaa;
}

.dark-mode .artist-name {
    color: #aaa;
} 

/* --- Lock Screen Overlay --- */
#lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000; /* Must be higher than menu-bar and dock */
    background: url('wallpaper.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 80px 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s ease;
}

#lock-screen.unlocked {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

/* Time & Date */
.ls-clock-container {
    text-align: center;
    color: white;
    text-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#ls-date {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

#ls-time {
    font-size: 140px;
    font-weight: 700;
    line-height: 1;
    margin-top: -10px;
    letter-spacing: -4px;
}

/* User Profile Section */
.ls-user-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ls-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 0.5px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.ls-username {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ls-login-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 6px 15px;
    width: 160px;
    color: white;
    outline: none;
    font-size: 13px;
    text-align: center;
}

.ls-login-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.ls-hint {
    margin-top: 40px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
} 
/* Context Menu Styles */
.context-menu {
    position: fixed;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: menuFadeIn 0.1s ease-out;
    z-index: 10000;
}

.context-menu .menu-item {
    padding: 8px 24px 8px 32px;
    font-size: 14px;
    color: #fff;
    cursor: default;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.context-menu .menu-item i {
    width: 16px;
    font-size: 14px;
    color: #aaa;
}

.context-menu .menu-item:hover {
    background: #007AFF;
    color: white;
}

.context-menu .menu-item:hover i {
    color: white;
}

.context-menu .menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

.context-menu .submenu-indicator {
    margin-left: auto;
    font-size: 10px;
    color: #888;
}

.context-menu .has-submenu:hover .submenu-indicator {
    color: white;
}

/* Submenu */
.submenu {
    display: none;
    position: fixed;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
}

.submenu.context-submenu {
    display: block;
    animation: menuFadeIn 0.1s ease-out;
}

/* Cloud Login Modal */
.cloud-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: fadeIn 0.2s ease-out;
}

.cloud-login-content {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cloud-login-content h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloud-login-content h2 i {
    color: #007AFF;
}

.cloud-login-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
}

.cloud-login-content input:focus {
    outline: none;
    border-color: #007AFF;
}

.cloud-login-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cloud-login-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

#cloud-login-btn, #cloud-register-btn {
    background: #007AFF;
    color: white;
}

#cloud-login-btn:hover, #cloud-register-btn:hover {
    background: #0051D5;
}

#cloud-close-btn, #cloud-back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

#cloud-close-btn:hover, #cloud-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 