@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-v11-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-v11-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-v11-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-v11-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

:root {
    --bg-default: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(35px) saturate(180%);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --text-color: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
}

[data-theme="dark"] {
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #f1f5f9;
}

[data-theme="light"] {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --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% - 40px);
    margin-top: 40px;
    position: relative;
    padding: 20px;
}

#desktop-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    padding: 20px;
    margin-top: 40px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
    border-radius: var(--radius-md);
    padding: 10px;
    width: 80px;
    height: 100px;
    position: absolute;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
}

.desktop-icon.selected {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    z-index: 5;
}

.desktop-icon .icon {
    font-size: 42px;
    margin-bottom: 8px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

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

.desktop-icon .label {
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window {
    position: absolute;
    min-width: 320px;
    min-height: 200px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: window-appear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.window.window-closing {
    animation: window-disappear 0.2s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes window-disappear {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.window.window-snapping {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes window-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.window.focused {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

.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;
}

.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;
}

.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;
}

#taskbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    z-index: 10000;
    background: var(--glass-bg);
    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.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    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: all 0.2s ease;
    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: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.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: var(--transition);
    position: relative;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.taskbar-item:active {
    transform: translateY(0) scale(0.95);
}

.taskbar-item.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent-color);
}

.taskbar-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-color);
}

#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);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
}

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: 50px;
    right: 20px;
    z-index: 20001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    width: 320px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: toast-slide 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes toast-slide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.toast-body {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.8;
}

.context-menu {
    position: fixed;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px;
    z-index: 10001;
    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 0.2s, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.context-menu.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.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 {
    background: var(--accent-color);
    color: white;
    transform: translateX(4px);
}

#lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80&w=2070') center/cover;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
}

#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%, #2563eb 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(59, 130, 246, 0.4);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
    filter: brightness(1.1);
}

.lock-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px -5px rgba(59, 130, 246, 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: 25000;
    display: none;
    align-items: center;
    justify-content: center;
}

.alt-tab-container {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--glass-bg);
    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 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes switcher-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.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: fixed;
    height: calc(100vh - 40px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
    border: 2px solid var(--accent);
    z-index: 15000;
    pointer-events: none;
    display: none;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

#snap-preview.visible {
    opacity: 1;
}

.system-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 30000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in 0.2s ease;
}

.system-dialog {
    width: 380px;
    padding: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: dialog-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.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.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);
        opacity: 0;
    }

    to {
        transform: scale(1);
        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);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
    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;
    }
}

.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: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
}

.switcher-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px) scale(1.05);
    border-color: var(--accent-color);
}

.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(0);
}

.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);
    z-index: 25000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#search-overlay.active {
    opacity: 1;
}

.search-container {
    width: 600px;
    max-width: 90vw;
    background: var(--glass-bg);
    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 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#search-overlay.active .search-container {
    transform: translateY(0) scale(1);
}

.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-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.res-icon {
    font-size: 24px;
}

.res-name {
    font-weight: 600;
    flex: 1;
}

.res-path {
    font-size: 12px;
    opacity: 0.5;
}

#shutdown-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    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);
    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: 21000;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    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;
}