/* ============================================
   iDesktop - Windows 11 Style
   ============================================ */

:root {
    --accent: #0078d4;
    --accent-light: #60cdff;
    --bg-dark: #0a0a0a;
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-glass-hover: rgba(255, 255, 255, 0.12);
    --bg-glass-active: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.5);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', 'Segoe UI', system-ui, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: #000;
    color: var(--text-primary);
}

/* ============================================
   UTILITIES
   ============================================ */

.glass-acrylic {
    background: rgba(32, 32, 32, 0.75);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.glass-mica {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 120, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(96, 205, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0c1a2d 0%, #0a0a0a 50%, #1a0c1a 100%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 420px;
    animation: loginSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loginSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box {
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.login-logo {
    margin-bottom: 40px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: right;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-right: 4px;
}

.input-group input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: var(--transition-fast);
    direction: ltr;
    text-align: center;
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
    margin-top: 12px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.otp-digit {
    width: 48px !important;
    height: 56px;
    padding: 0 !important;
    text-align: center;
    font-size: 24px !important;
    font-weight: 600;
    border-radius: var(--radius-md) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.otp-digit:focus {
    border-color: var(--accent) !important;
    transform: scale(1.05);
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    background: #006cbd;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.4);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(-3px);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: white;
    text-decoration: underline;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.otp-info {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0, 120, 212, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.otp-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.otp-info strong {
    color: var(--accent-light);
    direction: ltr;
    display: inline-block;
}

/* ============================================
   DESKTOP
   ============================================ */

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.wallpaper-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wallpaper {
    position: absolute;
    inset: 0;
    background: url('../wallpapers/wallpaper.jpg') center/cover;
    transition: background-image 0.8s ease, transform 10s ease;
    animation: wallpaperZoom 20s ease-in-out infinite alternate;
}

@keyframes wallpaperZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.wallpaper-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.desktop-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 1;
    padding: 16px;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-auto-flow: column;
    gap: 8px;
    height: 100%;
    align-content: start;
    justify-items: center;
}

/* ============================================
   DESKTOP ICONS
   ============================================ */

.desktop-icon {
    width: 76px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    position: absolute;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border: 1px solid transparent;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.desktop-icon.selected {
    background: rgba(0, 120, 212, 0.3);
    border-color: rgba(0, 120, 212, 0.5);
}

.desktop-icon.dragging {
    opacity: 0.85;
    z-index: 1000;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.desktop-icon .icon-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
}

.desktop-icon:hover .icon-img {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.desktop-icon .icon-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    padding: 2px 4px;
    border-radius: 3px;
}

.desktop-icon:hover .icon-label {
    background: rgba(0, 120, 212, 0.8);
    white-space: normal;
    -webkit-line-clamp: unset;
}

/* ============================================
   WIDGETS
   ============================================ */

.widgets-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.widget {
    position: absolute;
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
    color: white;
    pointer-events: all;
    overflow: hidden;
    min-width: 240px;
    min-height: 160px;
    transition: box-shadow 0.2s, transform 0.1s;
}

.widget:hover {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 120, 212, 0.15);
}

.widget.dragging {
    opacity: 0.9;
    transform: scale(1.02);
    z-index: 1000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: move;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-controls {
    display: flex;
    gap: 6px;
}

.wc-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-fast);
}

.wc-btn:hover {
    background: rgba(255, 95, 87, 0.2);
    color: #ff5f57;
}

.widget-content {
    padding: 16px;
    height: calc(100% - 45px);
    overflow: auto;
}

/* Widget Types */

.widget-clock .time-display {
    font-size: 48px;
    font-weight: 300;
    text-align: center;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 8px;
}

.widget-clock .date-display {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

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

.widget-weather .weather-icon {
    font-size: 64px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.widget-weather .temp {
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.widget-weather .city {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.widget-weather .desc {
    color: var(--accent-light);
    font-size: 13px;
    margin-top: 4px;
}

.widget-notes textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: white;
    resize: none;
    outline: none;
    font-size: 14px;
    line-height: 1.8;
    font-family: inherit;
}

.widget-todo .todo-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.widget-todo input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: white;
    outline: none;
    font-size: 13px;
    transition: var(--transition-fast);
}

.widget-todo input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

.widget-todo .btn-add {
    background: var(--accent);
    border: none;
    color: white;
    width: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-fast);
}

.widget-todo .btn-add:hover {
    background: #006cbd;
    transform: scale(1.05);
}

.widget-todo ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.widget-todo li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: var(--transition-fast);
    font-size: 13px;
}

.widget-todo li:hover {
    background: rgba(255,255,255,0.05);
}

.widget-todo li.done {
    opacity: 0.5;
}

.widget-todo li.done span {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.todo-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.todo-check:hover {
    border-color: var(--accent);
}

.todo-check.checked {
    background: var(--accent);
    border-color: var(--accent);
}

.todo-check.checked::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* ============================================
   TASKBAR (Windows 11 Style)
   ============================================ */

.taskbar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    z-index: 1000;
    border-radius: 10px;
    background: rgba(43, 43, 43, 0.85);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: var(--transition-normal);
}

.taskbar:hover {
    background: rgba(43, 43, 43, 0.95);
}

.taskbar-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.taskbar-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tb-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.tb-icon::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: transparent;
    transition: var(--transition-fast);
}

.tb-icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tb-icon.active::after {
    background: var(--accent);
}

.tb-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
    transition: var(--transition-fast);
}

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

.tb-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 8px;
}

.tray-icons {
    display: flex;
    gap: 8px;
}

.tray-icon {
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.tray-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.clock-widget {
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.clock-widget:hover {
    background: rgba(255, 255, 255, 0.08);
}

.clock-widget .time {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.clock-widget .date {
    font-size: 11px;
    color: var(--text-secondary);
}

.show-desktop {
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-left: 4px;
}

.show-desktop:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   START MENU
   ============================================ */

.start-menu {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    width: 600px;
    height: 640px;
    border-radius: var(--radius-xl);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
    z-index: 999;
    background: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.start-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.start-search {
    position: relative;
    margin-bottom: 20px;
}

.start-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.start-search input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.start-search input::placeholder {
    color: var(--text-tertiary);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-tertiary);
}

.start-section {
    flex: 1;
    overflow-y: auto;
}

.start-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 0 4px;
}

.pinned-apps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.app-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.app-tile:hover .tile-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

.app-tile span {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.start-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-power {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-power:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-power svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================
   WIDGETS PANEL
   ============================================ */

.widgets-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 998;
    transform: translateX(100%);
    transition: var(--transition-slow);
    padding: 24px;
    overflow-y: auto;
}

.widgets-panel.active {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.weather-widget-large {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.3), rgba(96, 205, 255, 0.2));
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-temp {
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
}

.weather-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.calendar-widget {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.cal-days div {
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cal-days div:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cal-days .today {
    background: var(--accent);
    font-weight: 600;
}

/* ============================================
   CONTEXT MENU
   ============================================ */

.context-menu {
    position: absolute;
    min-width: 220px;
    border-radius: var(--radius-md);
    padding: 6px;
    z-index: 10000;
    display: none;
    background: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    animation: menuAppear 0.15s ease;
}

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

.context-menu.active {
    display: block;
}

.cm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
}

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

.cm-item kbd {
    margin-right: auto;
    font-size: 11px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.cm-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.cm-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 4px;
}

.cm-arrow {
    margin-right: auto;
    font-size: 10px;
    color: var(--text-tertiary);
}

.cm-submenu {
    position: absolute;
    right: 100%;
    top: 0;
    min-width: 180px;
    background: rgba(43, 43, 43, 0.98);
    border-radius: var(--radius-md);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition-fast);
}

.cm-item.has-submenu:hover .cm-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ============================================
   SNAP INDICATOR
   ============================================ */

.snap-indicator {
    position: absolute;
    background: rgba(0, 120, 212, 0.3);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 999;
}

.snap-indicator.active {
    opacity: 1;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.desktop-icon, .widget {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .start-menu {
        width: 100%;
        height: 70vh;
        bottom: 56px;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateX(-50%) translateY(100%) scale(1);
    }
    
    .start-menu.active {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    .pinned-apps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .widgets-panel {
        width: 100%;
    }
}
/* ============================================
   WIDGET CONTENT STYLES
   ============================================ */

.widget-content {
    padding: 16px;
    height: calc(100% - 45px);
    overflow: auto;
    position: relative;
}

/* Clock Widget */
.widget-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
}

.widget-clock .time-display {
    font-size: 52px;
    font-weight: 300;
    text-align: center;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.widget-clock .date-display {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Weather Widget */
.widget-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
}

.widget-weather .weather-icon {
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: weatherFloat 3s ease-in-out infinite;
}

@keyframes weatherFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.widget-weather .temp {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
}

.widget-weather .city {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.widget-weather .desc {
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 500;
}

/* Notes Widget */
.notes-area {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    resize: none;
    outline: none;
    font-size: 14px;
    line-height: 1.8;
    font-family: inherit;
    padding: 0;
}

.notes-area::placeholder {
    color: var(--text-tertiary);
}

/* Todo Widget */
.widget-todo {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.todo-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.todo-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
    transition: var(--transition-fast);
    font-family: inherit;
}

.todo-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

.todo-input::placeholder {
    color: var(--text-tertiary);
}

.btn-add {
    background: var(--accent);
    border: none;
    color: white;
    width: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    background: #006cbd;
    transform: scale(1.05);
}

.todo-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.todo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: var(--transition-fast);
    font-size: 14px;
    background: rgba(255,255,255,0.03);
}

.todo-list li:hover {
    background: rgba(255,255,255,0.08);
}

.todo-list li.done {
    opacity: 0.5;
}

.todo-list li.done span {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.todo-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
    font-size: 12px;
}

.todo-check:hover {
    border-color: var(--accent);
}

.todo-check.checked {
    background: var(--accent);
    border-color: var(--accent);
}

.todo-check.checked::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 24px;
    left: 24px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.toast-success {
    background: rgba(16, 124, 16, 0.9);
    color: white;
}

.toast-error {
    background: rgba(196, 43, 28, 0.9);
    color: white;
}

.toast-info {
    background: rgba(0, 120, 212, 0.9);
    color: white;
}

.toast-icon {
    font-size: 16px;
    font-weight: bold;
}