@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/v1-1.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/v1-4.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/v1-2.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/v1-3.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
:root {
    --bg-default: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --accent: #3b82f6;
    --accent-rgb: 59, 130, 246;
    --accent-color: var(--accent);
    --accent-hover: #60a5fa;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-bg-accent: rgba(var(--accent-rgb), 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-border-accent: rgba(var(--accent-rgb), 0.4);
    --glass-blur: blur(40px) saturate(200%);
    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.1), 0 1px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.25), 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --glass-shadow: var(--shadow-md);
    --glass-shadow-focused: var(--shadow-lg), 0 0 0 1px var(--glass-border-accent);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --window-border: 1px solid var(--glass-border);
    --window-shadow: var(--glass-shadow);
    --window-shadow-focused: var(--glass-shadow-focused);
    --transition: var(--transition-fast);
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-cubic: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-in-out-cubic);
    --transition-normal: 0.35s var(--ease-in-out-cubic);
    --transition-slow: 0.5s var(--ease-out-expo);
    --transition-bounce: 0.6s var(--ease-out-back);
    --z-desktop: 1;
    --z-desktop-icon: 5;
    --z-window: 10;
    --z-window-focus: 100;
    --z-taskbar: 10000;
    --z-context-menu: 10001;
    --z-snap-preview: 15000;
    --z-overlay: 20000;
    --z-switcher: 20000;
    --z-notification: 20001;
    --z-calendar: 21000;
    --z-dialog: 30000;
    --z-shutdown: 99999;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --win-shadow-x: 0px;
    --win-shadow-y: 10px;
    --win-shadow-blur: 40px;
}
[data-theme="dark"] {
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-bg-hover: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #f1f5f9;
}
[data-theme="light"] {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: #0f172a;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-main);
    color: var(--text-color);
    background: var(--bg-default);
    background-size: cover;
    transition: background 0.8s ease;
}
#desktop {
    width: 100%;
    height: calc(100% - 30px);
    margin-top: 40px;
    position: relative;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
}
.terminal-line {
    margin-bottom: 2px;
}
#desktop-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    padding: 20px;
    margin-top: 40px;
    z-index: var(--z-desktop);
}
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.25s ease-out;
    border-radius: var(--radius-lg);
    padding: 10px;
    width: 90px;
    height: 105px;
    position: absolute;
    user-select: none;
    z-index: var(--z-desktop-icon);
    color: white;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}
.desktop-icon.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.desktop-icon:hover {
    background: transparent;
    transform: scale(1.03);
}
.desktop-icon.selected {
    transform: scale(0.98);
}
.desktop-icon.dragging {
    transition: none !important;
    z-index: 9999 !important;
    transform: scale(1.05) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    cursor: grabbing;
}
.desktop-icon:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.desktop-icon .icon {
    font-size: 36px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.25s ease-out;
}
.desktop-icon:hover .icon {
    transform: scale(1.05);
}
.desktop-icon .label {
    font-size: 12px;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.65);
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
}
.window {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--window-border);
    border-radius: 12px;
    box-shadow: var(--window-shadow);
    overflow: hidden;
    min-width: 400px;
    min-height: 250px;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, border-color 0.3s;
    animation: window-appear var(--transition-bounce);
    z-index: var(--z-window);
    will-change: transform, opacity;
}
.window:not(.focused) {
    opacity: 0.92;
    filter: saturate(0.8) brightness(0.9);
}
.window.focused {
    box-shadow: var(--win-shadow-x) var(--win-shadow-y) var(--win-shadow-blur) rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--accent-rgb), 0.3);
    border-color: rgba(var(--accent-rgb), 0.5);
    z-index: var(--z-window-focus);
    animation: focus-entry 0.3s var(--ease-out-back);
}
@keyframes focus-entry {
    from { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.005); filter: brightness(1.1); }
    to { transform: scale(1); filter: brightness(1); }
}
.window.window-closing {
    animation: window-disappear var(--transition-fast) forwards;
}
@keyframes window-disappear {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}
.window.window-snapping {
    transition: transform var(--transition-normal), width var(--transition-normal), height var(--transition-normal), top var(--transition-normal), left var(--transition-normal);
}
@keyframes window-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.window-header {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}
.window-title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.1px;
}
.window-controls {
    display: flex;
    gap: 8px;
}
.control-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: var(--transition);
}
.control-btn:hover {
    font-size: 12px;
}
.control-btn.close {
    background: #ff5f56;
}
.control-btn.minimize {
    background: #ffbd2e;
}
.control-btn.maximize {
    background: #27c93f;
}
.control-btn.close:hover {
    background: #ff4757;
}
.control-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.window-resizer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 15px;
    height: 15px;
    cursor: nwse-resize;
    z-index: 20;
}
.window-content {
    flex: 1;
    padding: 12px;
    overflow: auto;
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow-wrap: break-word;
}
.window:not(.focused) {
    opacity: 0.95;
    filter: none;
}
#taskbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    z-index: var(--z-taskbar);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.switcher-btn,
.search-btn {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #ffffff !important;
    font-weight: 800;
    line-height: 1;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    margin-left: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.search-btn {
    font-size: 9px;
    font-weight: normal;
}
.switcher-btn:hover,
.search-btn:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.1);
}
.switcher-btn:focus-visible,
.search-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.taskbar-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    z-index: -1;
}
#running-apps {
    flex: 1;
    display: flex;
    gap: 5px;
}
.taskbar-item {
    height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    user-select: none;
}
.taskbar-item:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}
.taskbar-item:active {
    transform: translateY(0) scale(0.95);
}
.taskbar-item.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent);
    box-shadow: inset 0 0 10px rgba(var(--accent-rgb), 0.2);
}
.taskbar-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent);
}
.taskbar-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
#system-tray {
    font-size: 13px;
    font-weight: 500;
}
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}
button.primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition-fast);
}
button.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
textarea.modern {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
}
#notification-center {
    position: fixed;
    top: 55px;
    right: 20px;
    z-index: var(--z-notification);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    width: 320px;
    min-height: 60px;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transition: transform var(--transition-smooth) 0.3s, opacity var(--transition-smooth) 0.3s;
    align-items: flex-start;
    gap: 12px;
    animation: toast-slide 0.4s var(--ease-out-back);
    position: relative;
    overflow: hidden;
}
.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}
.toast-success::before { background: #10b981; }
.toast-error::before { background: #ef4444; }
.toast-warning::before { background: #f59e0b; }
.toast-info::before { background: var(--accent); }
@keyframes toast-slide {
    from {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}
.toast.fade-out {
    opacity: 0;
    transform: translateX(50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toast-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-color);
}
.toast-body {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.85;
}
.toast-action {
    align-self: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.toast-action:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}
.context-menu {
    position: fixed;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 6px;
    z-index: var(--z-context-menu);
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
}
.context-menu.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.explorer-toolbar .sys-btn {
    padding: 6px 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s, transform 0.1s;
}
.explorer-toolbar .sys-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.explorer-toolbar .sys-btn:active {
    transform: scale(0.95);
}
.explorer-toolbar .home-btn {
    margin-right: 4px;
    font-size: 16px;
}
.context-menu-item {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.context-menu-item:hover,
.context-menu-item.selected {
    background: var(--accent-color);
    color: white;
    transform: translateX(4px);
}
.context-menu-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
#lock-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.8s;
}
#lock-screen.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.lock-wallpaper {
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background: var(--wallpaper);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.7);
    z-index: -1;
    transition: transform 0.1s ease-out;
}
.lock-content {
    text-align: center;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.lock-time {
    font-size: 120px;
    font-weight: 200;
    letter-spacing: -2px;
    line-height: 1;
}
.lock-date {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.8;
}
.lock-input-group {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
#unlock-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
#unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}
#unlock-btn:active {
    transform: translateY(0);
}
#lock-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(60px);
}
.lock-panel {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    animation: lock-panel-in 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.lock-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    margin-bottom: 20px;
}
.lock-user {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}
.lock-btn {
    padding: 14px 40px;
    background: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(var(--accent-rgb), 0.4);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}
.lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(var(--accent-rgb), 0.6);
    filter: brightness(1.1);
}
.lock-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px -5px rgba(var(--accent-rgb), 0.4);
}
@keyframes lock-panel-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body.system-locked #taskbar,
body.system-locked #desktop {
    filter: blur(10px);
    pointer-events: none;
}
#alt-tab-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: var(--z-overlay);
    display: none;
    align-items: center;
    justify-content: center;
}
.toast {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
    width: 320px;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(50px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
.toast.fade-out {
    animation: toast-out 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(100px) scale(0.8); }
}
.alt-tab-container {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: switcher-in var(--transition-normal);
}
@keyframes switcher-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.desktop-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 15px;
    pointer-events: none;
    z-index: var(--z-desktop);
    perspective: 1000px;
}
.alt-tab-item {
    width: 100px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}
.alt-tab-item.selected {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.alt-tab-icon {
    font-size: 40px;
}
.alt-tab-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
#snap-preview {
    position: absolute;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--accent);
    border-radius: 12px;
    pointer-events: none;
    z-index: 20000;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
#snap-preview.visible {
    opacity: 1;
}
.system-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: var(--z-dialog);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in var(--transition-fast);
}
.system-dialog {
    width: 380px;
    padding: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: dialog-pop var(--transition-bounce);
}
.dialog-content p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0.9;
}
.dialog-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-color);
    margin-bottom: 20px;
    outline: none;
}
.dialog-input:focus {
    border-color: var(--accent-color);
}
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.dialog-btn {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.dialog-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.dialog-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.dialog-btn.primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes dialog-pop {
    from {
        transform: scale(0.9) translateY(10px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
.explorer-empty {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    opacity: 0.5;
    font-size: 14px;
}
.explorer-item:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}
#switcher-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: var(--z-switcher);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}
#switcher-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.switcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    animation: switcher-grid-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes switcher-grid-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 768px) {
    #taskbar { height: 50px; top: auto; bottom: 0; padding: 0 8px; }
    #desktop { height: calc(100% - 50px); margin-top: 0; margin-bottom: 50px; }
    .desktop-icon { width: 60px; height: 75px; }
    .desktop-icon .icon { font-size: 24px; }
    .desktop-icon .label { font-size: 10px; }
    .window { min-width: 260px !important; min-height: 180px !important; }
    .control-btn { width: 28px; height: 28px; font-size: 14px; }
    .toast { width: 280px; min-width: 240px; }
    #calendar-overlay { bottom: 60px; right: 10px; width: 280px; }
    .search-container { width: 90vw; }
    .switcher-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
    .switcher-card .card-icon { font-size: 48px; }
    .switcher-card .card-title { font-size: 14px; }
    .taskbar-preview { bottom: 55px; width: 160px; }
}
@media (max-width: 480px) {
    #taskbar { height: 48px; gap: 6px; padding: 0 4px; }
    .taskbar-item { height: 32px; padding: 0 8px; font-size: 12px; }
    .tb-icon { font-size: 14px; }
    .search-btn, .switcher-btn { width: 28px; height: 28px; font-size: 12px; }
    #system-tray { font-size: 11px; }
    .toast { width: 100%; min-width: auto; }
    #notification-center { right: 10px; left: 10px; width: auto; }
    .system-dialog { width: 90vw; padding: 16px; }
    .dialog-btn { padding: 8px 12px; font-size: 12px; }
}
.switcher-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--glass-shadow);
}
.switcher-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent);
}
.switcher-card .card-icon {
    font-size: 64px;
}
.switcher-card .card-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}
.taskbar-preview {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 200px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
}
.taskbar-item:hover .taskbar-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
.preview-thumbnail {
    width: 100%;
    height: 110px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}
.taskbar-preview:hover .preview-thumbnail {
    transform: scale(1.02);
}
.preview-info {
    text-align: center;
    font-weight: 600;
}
#search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-overlay);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    transition: opacity var(--transition-normal);
}
#search-overlay.active {
    opacity: 1;
}
.search-container {
    width: 600px;
    max-width: 90vw;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: transform var(--transition-bounce);
}
#search-overlay.active .search-container {
    transform: translateY(0) scale(1);
}
.res-type-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--glass-border);
}
.search-icon {
    font-size: 24px;
    margin-right: 20px;
    opacity: 0.7;
}
.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 20px;
    font-family: inherit;
}
.search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 10px;
    gap: 15px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.search-item:hover, .search-item.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}
.res-icon {
    font-size: 24px;
    width: 32px;
    display: flex;
    justify-content: center;
}
.res-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.res-name {
    font-size: 14px;
    font-weight: 500;
}
.res-path {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.res-type-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.breadcrumb-item {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
}
.breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.breadcrumb-item.active {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
}
.calc-btn[data-val="0"] {
    grid-column: span 2;
}
.sys-btn, .calc-btn, .control-btn, .tm-kill-btn {
    transition: all 0.2s ease;
}
.sys-btn:hover, .calc-btn:hover, .control-btn:hover {
    filter: brightness(1.2);
}
#shutdown-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: var(--z-shutdown);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-family: var(--font-main);
}
.shutdown-content {
    animation: shutdown-fade 0.5s ease-out;
}
.shutdown-icon {
    font-size: 80px;
    margin-bottom: 20px;
    color: #ef4444;
}
.restart-btn {
    margin-top: 30px;
    padding: 12px 24px;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.restart-btn:hover {
    transform: scale(1.05);
}
@keyframes shutdown-fade {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
#calendar-overlay {
    position: fixed;
    bottom: 50px;
    right: 15px;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: var(--z-calendar);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform var(--transition-bounce), opacity var(--transition-normal);
    pointer-events: none;
}
#calendar-overlay.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.cal-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-transform: capitalize;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}
.cal-weekday {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.5;
    margin-bottom: 5px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    transition: background 0.2s;
}
.cal-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.1);
}
.cal-day.today {
    background: var(--accent);
    color: white;
    font-weight: 700;
}
.context-menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}
#boot-screen {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--transition-smooth), visibility 0.8s;
}
#boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.boot-logo {
    width: 140px;
    height: 140px;
    border-radius: 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: boot-pulse 2s infinite ease-in-out;
}
.boot-loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.boot-status {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}
@keyframes boot-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 20px var(--accent)); }
}
.section-desc {
    font-size: 11px;
    opacity: 0.6;
    margin-bottom: 12px;
    line-height: 1.4;
}
.autostart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: background 0.2s;
}
.autostart-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.autostart-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.autostart-item-icon {
    font-size: 20px;
}
#notification-center {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 350px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}
#notification-center > * {
    pointer-events: auto;
}
.notification-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
}
.taskbar {
    height: 40px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
    z-index: 10000;
}
.notification-clear-btn {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.notification-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.sys-info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.sys-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sys-info-row:last-child {
    border-bottom: none;
}
.sys-info-row span:first-child {
    color: rgba(255, 255, 255, 0.6);
}
.sys-info-row span:last-child {
    font-weight: 600;
}
.sys-status {
    color: #4ade80;
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes slide-in-right {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes scale-up {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.reveal { animation: reveal var(--transition-normal) forwards; }
.float { animation: float 3s ease-in-out infinite; }
.pulse { animation: pulse-soft 2s ease-in-out infinite; }

.about-container {
    text-align: center;
    padding: 32px 24px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    gap: 16px;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.about-logo {
    font-size: 64px;
    filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.5));
    animation: float 4s ease-in-out infinite;
    margin-bottom: 8px;
}
.about-title {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.about-desc {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.6;
    max-width: 340px;
}
.about-details {
    margin-top: auto;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.detail-label {
    opacity: 0.5;
    font-weight: 500;
}
.detail-value {
    font-family: monospace;
    color: var(--accent);
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}


.calc-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 12px;
    gap: 8px;
    outline: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow-y: auto;
}
.calc-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 85px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
    transition: var(--transition-normal);
    flex-shrink: 0;
}
.calc-display:focus-within {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}
.calc-history {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    min-height: 16px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calc-current {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-color);
    word-break: break-all;
    line-height: 1.1;
    overflow: hidden;
    max-height: 40px;
}
.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    flex: 1;
}
.calc-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 8px 4px;
    position: relative;
    overflow: hidden;
}
.calc-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: var(--glass-border-hover);
}
.calc-btn:active, .calc-btn.active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.96);
    transition: 0.08s;
}
.calc-btn.op {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    font-weight: 700;
    font-size: 20px;
}
.calc-btn.eq {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    border-color: var(--accent);
}
.calc-btn.eq:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.3);
}
.calc-btn.clear {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.25);
    font-weight: 700;
}
.calc-btn.clear:hover {
    background: rgba(255, 59, 48, 0.2);
}
.calc-btn[data-val="0"] {
    grid-column: span 2;
}

.explorer-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: 13px;
}
.explorer-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}
.explorer-breadcrumbs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    min-width: 100px;
    flex-wrap: wrap;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.breadcrumb-item {
    opacity: 0.7;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    padding: 2px 6px;
    border-radius: 4px;
}
.breadcrumb-item:hover {
    opacity: 1;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}
.breadcrumb-item.active {
    opacity: 1;
    font-weight: 700;
    pointer-events: none;
    color: var(--text-color);
}
.breadcrumb-sep {
    opacity: 0.4;
    font-size: 11px;
    font-weight: 800;
}
.explorer-app .sys-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
}
.explorer-app .sys-btn:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--glass-border-hover);
}
.explorer-search {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    color: var(--text-color);
    font-size: 13px;
    width: 140px;
    transition: var(--transition-normal);
}
.explorer-search:focus {
    width: 220px;
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}
.explorer-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    perspective: 1000px;
}
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    width: 100%;
    outline: none;
    transform-style: preserve-3d;
}
.explorer-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.explorer-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.5;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 6px;
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    z-index: 10;
}
.explorer-list-header > div {
    display: flex;
    align-items: center;
}
.explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    border: 1px solid transparent;
}
.explorer-item:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    border-color: var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.explorer-item.item-list {
    flex-direction: row;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 8px 12px;
    width: 100%;
    align-items: center;
    border-radius: 8px;
}
.explorer-item.item-list:hover {
    transform: translateX(4px);
    background: var(--glass-bg-hover);
}
.explorer-item.item-list .item-icon {
    font-size: 20px;
    margin-bottom: 0;
    margin-right: 12px;
    width: 24px;
    display: flex;
    justify-content: center;
    filter: none; /* Reset filter */
    transform: none; /* Reset transform */
}
.explorer-item.item-list .item-name {
    margin-top: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none; /* Reset transform */
}
.explorer-item.item-list .item-type,
.explorer-item.item-list .item-size {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
}
.explorer-item:active {
    transform: translateY(-2px) scale(0.98);
    transition: 0.1s;
}
.explorer-item:focus {
    background: var(--glass-bg-accent);
    border-color: var(--accent);
    box-shadow: var(--glass-shadow-focused);
}
.item-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(20px);
}
.explorer-item:hover .item-icon {
    transform: translateZ(40px) scale(1.15);
}
.item-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transform: translateZ(10px);
}
.explorer-statusbar {
    padding: 6px 12px;
    font-size: 10px;
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}
.explorer-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    opacity: 0.3;
    font-style: italic;
}
.properties-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 300px;
    padding: 10px 0;
}
.prop-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}
.prop-row b {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.prop-row span {
    font-weight: 600;
    color: var(--text-color);
}

.notes-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    animation: reveal var(--transition-normal) forwards;
}
.notes-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}
.btn-group {
    display: flex;
    gap: 6px;
}
.notes-app .sys-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 16px;
}
.notes-app .sys-btn:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.notes-app .sys-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent-hover);
}
.notes-status {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.7;
    padding-left: 16px;
}
.status-text {
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}
.stats-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}
.notes-editor {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 30px;
    font-size: 15px;
    line-height: 1.7;
    font-family: var(--font-main);
    resize: none;
    outline: none;
    overflow-y: auto;
    transition: padding 0.3s;
}
.notes-editor:focus {
    padding: 30px 40px;
}
.notes-editor::placeholder {
    opacity: 0.25;
}
.notes-editor::-webkit-scrollbar { width: 10px; }
.notes-editor::-webkit-scrollbar-track { background: transparent; }
.notes-editor::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.notes-editor::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); background-clip: content-box; }
.notes-search-bar {
    display: none;
    padding: 8px 12px;
    gap: 6px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}
.notes-search-input, .notes-replace-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-color);
    outline: none;
    font-family: inherit;
}
.notes-search-input:focus, .notes-replace-input:focus {
    border-color: var(--accent);
}
.notes-search-btn, .notes-replace-btn {
    background: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}


.settings-app {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    height: 100%;
    overflow-y: auto;
}
.settings-section h3 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-bottom: 10px;
}
.toggle-group {
    display: flex;
    gap: 8px;
}
.toggle-group button, .apply-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.toggle-group button:hover, .apply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.toggle-group button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}
.color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.preset-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}
.preset-btn:hover { transform: scale(1.15); }
.preset-btn.active { border-color: var(--accent); transform: scale(0.9); box-shadow: 0 0 12px var(--accent); }
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.input-group label {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 600;
}
.flex-row {
    display: flex;
    gap: 8px;
}
.wallpaper-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-color);
    font-size: 12px;
}
.apply-btn { flex: 0 0 auto; padding: 0 16px; }
.autostart-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}
.autostart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}
.autostart-item-info { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.autostart-item-icon { font-size: 16px; }
.danger-zone {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
}
.reset-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.reset-btn:hover {
    background: #ff3b30;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}

.syslog-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: 13px;
    color: var(--text-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}
.syslog-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.toolbar-left, .toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.syslog-app .sys-btn {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.syslog-app .sys-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}
.syslog-app .sys-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}
.source-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    color: var(--text-color);
    font-size: 11px;
    outline: none;
}
.syslog-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    color: var(--text-color);
    font-size: 11px;
    min-width: 100px;
    flex: 1;
    outline: none;
    transition: var(--transition-fast);
}
.syslog-search:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}
.syslog-viewer {
    flex: 1;
    overflow: auto;
    padding: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.15);
    min-height: 0;
}
.log-entry {
    display: flex;
    gap: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.1s;
    cursor: pointer;
}
.log-entry:hover { background: rgba(255, 255, 255, 0.05); }
.log-time { color: var(--accent); opacity: 0.6; font-weight: 500; }
.log-session { color: #8e44ad; opacity: 0.7; }
.log-level { font-weight: 800; min-width: 50px; text-transform: uppercase; }
.log-source { color: #2ecc71; font-weight: 600; }
.log-msg { color: #ecf0f1; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-entry.level-err { background: rgba(231, 76, 60, 0.05); }
.log-entry.level-err .log-level { color: #e74c3c; }
.log-entry.level-warn { background: rgba(241, 196, 15, 0.05); }
.log-entry.level-warn .log-level { color: #f1c40f; }
.log-entry.level-info .log-level { color: #3498db; }
.log-entry.level-debug .log-level { color: #95a5a6; }
.syslog-status {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 10px;
    font-weight: 600;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.task-manager {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    gap: 10px;
    overflow: hidden;
}
.tm-sysinfo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}
.tm-metrics {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.tm-sparkline-container {
    flex: 1;
    height: 32px;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}
.tm-sparkline-canvas {
    width: 100%;
    height: 100%;
}
.tm-storage-info {
    flex: 2;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tm-storage-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.9;
}
.tm-storage-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.tm-storage-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}
.tm-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tm-search {
    flex: 1;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    color: var(--text-color);
    font-size: 11px;
    outline: none;
    transition: var(--transition-fast);
}
.tm-search:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}
.tm-table {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: auto;
    min-height: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}
.tm-header {
    display: grid;
    grid-template-columns: minmax(80px, 2fr) repeat(2, 50px) repeat(2, 70px);
    padding: 8px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}
.tm-list {
    flex: 1;
    overflow-y: auto;
}
.tm-row {
    display: grid;
    grid-template-columns: minmax(80px, 2fr) repeat(2, 50px) repeat(2, 70px);
    padding: 8px 10px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}
.tm-row:hover { background: rgba(255, 255, 255, 0.05); }
.tm-app-info { display: flex; align-items: center; gap: 8px; }
.tm-icon { font-size: 16px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.tm-name { font-weight: 600; font-size: 11px; }
.tm-pid { font-family: 'JetBrains Mono', monospace; opacity: 0.5; font-size: 9px; }
.tm-uptime, .tm-mem { font-size: 10px; text-align: right; }
.tm-actions { text-align: center; }
.tm-kill-btn {
    padding: 4px 6px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff453a;
    border-radius: var(--radius-sm);
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}
.tm-kill-btn:hover:not(:disabled) {
    background: #ff453a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3);
}
.tm-kill-all-btn {
    padding: 5px 10px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff453a;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}
.tm-kill-all-btn:hover {
    background: #ff453a;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 69, 58, 0.4);
}
.text-center { text-align: center; }
.text-right { text-align: right; }

.terminal-container {
    background: rgba(10, 15, 25, 0.98);
    color: var(--terminal-text, #10b981);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.terminal-container.theme-matrix { --terminal-text: #00ff41; background: rgba(0, 5, 0, 0.98); }
.terminal-container.theme-cyberpunk { --terminal-text: #f0f; background: rgba(20, 0, 40, 0.98); }
.terminal-container.theme-classic { --terminal-text: #fff; background: rgba(30, 30, 30, 0.98); }
.terminal-container::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}
.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-all;
    scrollbar-width: thin;
    z-index: 1;
}
.terminal-input-line {
    display: flex;
    align-items: center;
    z-index: 1;
}
.terminal-prompt {
    margin-right: 10px;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 700;
}
.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--terminal-text, #10b981);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}
@keyframes blink {
    50% { opacity: 0; }
}
.terminal-echo { color: rgba(255, 255, 255, 0.5); }
.terminal-error { color: #ff5555; font-weight: bold; }
.terminal-info { color: var(--terminal-text, #10b981); }
.terminal-dir { color: var(--accent); font-weight: bold; }

