/* ==================== DREAM OS THEME VARIABLES ==================== */
:root {
    /* Color Theme - DreamOS Dark */
    --highlight-color: #24292e;
    --highlight-secondary: #3b3d3f;
    --primary-color: #2D3436;
    --secondary-color: #636E72;
    --window-bg: rgba(45, 52, 54, 0.95);
    --background-color: #1E272E;
    --taskbar-color: rgba(36, 41, 46, 0.98);
    --text-color: #DFE6E9;
    --text-secondary: #B2BEC3;
    
    /* Fonts */
    --font-thin: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --font-regular: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --font-bold: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    
    /* Blur Effects */
    --blur-strength: 20px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* ==================== GLOBAL RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-regular);
    overflow: hidden;
    background: var(--background-color);
    color: var(--text-color);
    width: 100vw;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* ==================== BOOT SCREEN ==================== */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E272E 0%, #2D3436 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: bootFadeOut 0.5s ease 3s forwards;
}

@keyframes bootFadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.boot-content {
    text-align: center;
}

.boot-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--highlight-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.logo-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--highlight-color);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.boot-text {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.boot-status {
    max-width: 300px;
    margin: 0 auto;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-color), var(--highlight-secondary));
    border-radius: 2px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== DESKTOP ==================== */
#desktop {
    position: relative;
    width: 100%;
    height: calc(100vh - 50px);
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    overflow: hidden;
}

#wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wallpapers/Black Ops 6/bo6-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

#desktop-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-speed);
    user-select: none;
    width: 100px;
    height: 100px;
    position: relative;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.desktop-icon.selected {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.desktop-icon:active {
    transform: scale(0.95);
}

.desktop-icon svg,
.desktop-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.desktop-icon span {
    font-size: 12px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Selection Box */
#selection-box {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    display: none;
    z-index: 1000;
}

/* ==================== TASKBAR ==================== */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--taskbar-color);
    backdrop-filter: blur(var(--blur-strength));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    z-index: 1000;
}

#start-button {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

#start-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

#start-button.active {
    background: var(--highlight-color);
}

.start-icon {
    width: 28px;
    height: 28px;
}

#taskbar-apps {
    flex: 1;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
}

#taskbar-apps::-webkit-scrollbar {
    height: 0;
}

.taskbar-app {
    min-width: 180px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-app.active {
    background: color-mix(in srgb, var(--highlight-color) 20%, transparent);
    border-color: var(--highlight-color);
}

.taskbar-app svg,
.taskbar-app img {
    width: 20px;
    height: 20px;
}

.taskbar-app span {
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#system-tray {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tray-icons {
    display: flex;
    gap: 10px;
}

.tray-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.tray-icon:hover {
    opacity: 1;
}

#clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background var(--transition-speed);
}

#clock:hover {
    background: rgba(255, 255, 255, 0.1);
}

.clock-time {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.clock-date {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==================== START MENU ==================== */
#start-menu {
    position: fixed;
    bottom: 60px;
    left: 10px;
    width: 420px;
    max-height: 600px;
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform-origin: bottom left;
    transition: all var(--transition-speed);
    z-index: 999;
}

#start-menu.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    pointer-events: none;
}

.start-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight-color), var(--highlight-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.user-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Login Section */
.login-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.login-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.login-input:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.15);
}

.login-input::placeholder {
    color: var(--text-secondary);
}

.login-submit-btn {
    background: linear-gradient(135deg, var(--highlight-color), var(--highlight-secondary));
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* Registration Modal */
.registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.registration-modal.show {
    display: flex;
}

.registration-modal-content {
    background: var(--window-bg);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.registration-modal h3 {
    margin: 0 0 16px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.registration-modal p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.registration-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.registration-modal-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.registration-modal-btn.primary {
    background: linear-gradient(135deg, var(--highlight-color), var(--highlight-secondary));
    color: white;
}

.registration-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.registration-modal-btn:hover {
    transform: translateY(-1px);
}

.start-menu-search {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

#start-menu-apps {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

#start-menu-apps::-webkit-scrollbar {
    width: 6px;
}

#start-menu-apps::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.start-menu-app {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.start-menu-app:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-app svg,
.start-menu-app img {
    width: 32px;
    height: 32px;
}

.start-menu-app-info {
    flex: 1;
}

.start-menu-app-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.start-menu-app-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.start-menu-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.power-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.power-button:hover {
    background: var(--highlight-color);
}

.power-button svg {
    width: 20px;
    height: 20px;
}

/* ==================== WINDOWS ==================== */
#windows-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    pointer-events: none;
    z-index: 100;
}

.window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: all;
    transition: transform 0.2s, opacity 0.2s;
}

.window.minimized {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 50px) !important;
    border-radius: 0;
}

.window-header {
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

.window-header:hover {
    background: rgba(0, 0, 0, 0.25);
}

.window-header:active {
    cursor: grabbing;
}

.window-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.window-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.window-controls {
    display: flex;
    gap: 10px;
}

.window-control {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
    color: var(--text-color);
}

.window-control:hover {
    background: rgba(255, 255, 255, 0.1);
}

.window-control.close:hover {
    background: #E74C3C;
}

.window-control svg {
    width: 16px;
    height: 16px;
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    position: relative;
}

.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

/* Window resize handles */
.window-resize {
    position: absolute;
    z-index: 10;
}

.window-resize.n { top: 0; left: 0; right: 0; height: 5px; cursor: ns-resize; }
.window-resize.s { bottom: 0; left: 0; right: 0; height: 5px; cursor: ns-resize; }
.window-resize.e { right: 0; top: 0; bottom: 0; width: 5px; cursor: ew-resize; }
.window-resize.w { left: 0; top: 0; bottom: 0; width: 5px; cursor: ew-resize; }
.window-resize.ne { top: 0; right: 0; width: 10px; height: 10px; cursor: nesw-resize; }
.window-resize.nw { top: 0; left: 0; width: 10px; height: 10px; cursor: nwse-resize; }
.window-resize.se { bottom: 0; right: 0; width: 10px; height: 10px; cursor: nwse-resize; }
.window-resize.sw { bottom: 0; left: 0; width: 10px; height: 10px; cursor: nesw-resize; }

/* ==================== CONTEXT MENU ==================== */
#context-menu {
    position: fixed;
    min-width: 200px;
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 5px;
    z-index: 2000;
    transition: all var(--transition-speed);
}

#context-menu.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.context-menu-item span {
    font-size: 13px;
    color: var(--text-color);
}

.context-menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ripple effect for buttons */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.ripple-effect:active::after {
    animation: ripple 0.6s ease-out;
}

/* ==================== LOCK SCREEN ==================== */
#lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.95) 0%, rgba(45, 52, 54, 0.95) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lock-content {
    text-align: center;
    color: var(--text-color);
}

.lock-time {
    font-size: 96px;
    font-weight: 300;
    margin-bottom: 10px;
}

.lock-date {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.lock-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--highlight-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 24px;
    font-weight: 500;
}

.lock-password {
    width: 300px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: all var(--transition-speed);
}

.lock-password:focus {
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.15);
}

.lock-login-btn {
    padding: 12px 40px;
    background: var(--highlight-color);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.lock-login-btn:hover {
    background: var(--highlight-secondary);
    transform: translateY(-2px);
}

/* ==================== DESKTOP WIDGETS ==================== */
#desktop-widgets {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 50;
    pointer-events: none;
}

.widget {
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 12px;
    padding: 20px;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    animation: slideIn 0.3s ease-out;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.widget-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    transition: color var(--transition-speed);
}

.widget-close:hover {
    color: var(--text-color);
}

.widget-content {
    color: var(--text-color);
}

/* Clock Widget */
.clock-widget-time {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 5px;
}

.clock-widget-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Weather Widget */
.weather-widget {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-icon {
    font-size: 48px;
}

.weather-info {
    flex: 1;
}

.weather-temp {
    font-size: 32px;
    font-weight: 300;
}

.weather-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Notes Widget */
.notes-widget textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-color);
    font-family: var(--font-regular);
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.notes-widget textarea:focus {
    border-color: var(--highlight-color);
}

/* ==================== NOTIFICATION CENTER ==================== */
#notification-center {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform var(--transition-speed);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

#notification-center:not(.hidden) {
    transform: translateX(0);
}

.notification-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.clear-all-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.clear-all-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.notification-item-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-item-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Popup Notifications */
#notification-popup-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification-popup {
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.notification-popup:hover {
    transform: translateX(-5px);
}

.notification-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.notification-popup-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--highlight-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-popup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.notification-popup-body {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 42px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== QUICK CENTER ==================== */
#quick-center {
    position: fixed;
    right: 20px;
    bottom: 70px;
    width: 360px;
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-speed);
    z-index: 9997;
    pointer-events: none;
}

#quick-center:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.quick-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.quick-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

.quick-tile {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quick-tile:hover {
    background: rgba(255, 255, 255, 0.15);
}

.quick-tile.active {
    background: var(--highlight-color);
}

.quick-tile svg {
    width: 24px;
    height: 24px;
}

.quick-tile span {
    font-size: 12px;
    color: var(--text-color);
}

.quick-sliders {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.slider-header svg {
    width: 20px;
    height: 20px;
}

.slider-value {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary);
}

.quick-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.quick-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.quick-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.quick-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    border: none;
}

/* ==================== MODAL WINDOW ==================== */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9996;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

#modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.modal-window {
    background: var(--window-bg);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 12px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    padding: 30px;
}

.modal-header {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.modal-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.modal-btn-primary {
    background: var(--highlight-color);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--highlight-secondary);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== MAINTENANCE MODE ==================== */
#maintenance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.98) 0%, rgba(45, 52, 54, 0.98) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.maintenance-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.maintenance-icon {
    margin: 0 auto 30px;
    color: var(--text-color);
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.maintenance-title {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.maintenance-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.6;
}

.maintenance-password-section {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.maintenance-password-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    transition: all var(--transition-speed);
}

.maintenance-password-input:focus {
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.15);
}

.maintenance-unlock-btn {
    padding: 15px 30px;
    background: var(--highlight-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.maintenance-unlock-btn:hover {
    background: var(--highlight-secondary);
    transform: translateY(-2px);
}

.maintenance-error {
    color: #E74C3C;
    font-size: 14px;
    margin-top: 10px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* ==================== TASKBAR CONTEXT MENU ==================== */
.taskbar-context-menu {
    position: fixed;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.context-menu-item {
    padding: 10px 16px;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

.taskbar-app.pinned {
    position: relative;
}

.taskbar-app.pinned::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--highlight-color);
    border-radius: 50%;
}

/* ==================== TUTORIAL SYSTEM ==================== */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 99998;
    animation: fadeIn 0.3s ease;
}

.tutorial-highlight {
    position: fixed;
    border: 3px solid var(--highlight-color);
    border-radius: 8px;
    box-shadow: 0 0 0 99999px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 99999px rgba(0, 0, 0, 0.15), 0 0 20px var(--highlight-color); }
    50% { box-shadow: 0 0 0 99999px rgba(0, 0, 0, 0.15), 0 0 30px var(--highlight-color); }
}

.tutorial-tooltip {
    position: fixed;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 100000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.tutorial-step-counter {
    color: var(--text-secondary);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.tutorial-message {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.tutorial-buttons {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tutorial-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.tutorial-btn-next {
    background: var(--highlight-color);
    color: white;
}

.tutorial-btn-next:hover {
    background: var(--highlight-secondary);
    transform: translateY(-1px);
}

.tutorial-btn-prev,
.tutorial-btn-skip {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.tutorial-btn-prev:hover,
.tutorial-btn-skip:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Select2 Dark Theme Customization */
.select2-container--custom-dark .select2-selection--single {
    background-color: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 36px;
    padding: 6px 12px;
}

.select2-container--custom-dark .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary, rgba(255, 255, 255, 0.9));
    line-height: 24px;
    padding-left: 0;
    padding-top: 0;
}

.select2-container--custom-dark .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 8px;
}

.select2-container--custom-dark .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent;
    border-width: 6px 4px 0 4px;
}

.select2-container--custom-dark.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent rgba(255, 255, 255, 0.5) transparent;
    border-width: 0 4px 6px 4px;
}

.select2-dropdown {
    background-color: var(--window-bg, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.select2-container--custom-dark .select2-results__option {
    background-color: transparent;
    color: var(--text-primary, rgba(255, 255, 255, 0.9));
    padding: 8px 12px;
}

.select2-container--custom-dark .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(74, 158, 255, 0.2);
    color: #4A9EFF;
}

.select2-container--custom-dark .select2-results__option[aria-selected=true] {
    background-color: rgba(74, 158, 255, 0.3);
    color: #4A9EFF;
}

.select2-search--dropdown {
    background-color: var(--window-bg, #1a1a1a);
    padding: 8px;
}

.select2-search--dropdown .select2-search__field {
    background-color: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary, rgba(255, 255, 255, 0.9));
    padding: 6px 12px;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #4A9EFF;
}

.select2-container--custom-dark .select2-selection--single:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.select2-container--custom-dark .select2-selection--single:focus {
    outline: none;
    border-color: #4A9EFF;
}

.select2-results {
    background-color: var(--window-bg, #1a1a1a);
}

.select2-results__options {
    background-color: var(--window-bg, #1a1a1a);
}
