/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Tahoma, Segoe UI, sans-serif;
}

body {
    background: #081427;
    color: #fff;
}

/* ========== DESKTOP ========== */
#desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ========== WALLPAPER SLIDESHOW ========== */
#wallpaper-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

#wallpaper-slideshow {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    z-index: 0;
}

#wallpaper-slideshow.loading {
    animation: wallpaperPulse 1.5s ease-in-out infinite;
}

@keyframes wallpaperPulse {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

#wallpaper-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 39, 0.3);
    z-index: 1;
}

#wallpaper-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(8, 20, 39, 0.4) 0%,
            rgba(8, 20, 39, 0.1) 50%,
            rgba(8, 20, 39, 0.4) 100%);
}

/* ========== DESKTOP ICONS ========== */
#desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
}

.desktop-icon {
    width: 90px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    color: #fff;
    transition: .25s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
}

.icon-img {
    font-size: 42px;
    margin-bottom: 8px;
}

.icon-title {
    font-size: 13px;
}

/* ============================================================
   TASKBAR - WINDOWS 11 STYLE
   ============================================================ */
#taskbar {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: 96%;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .35);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

/* ===== بخش چپ ===== */
#taskbar .left-section {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

/* ===== بخش راست ===== */
#taskbar .right-section {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: flex-end;
}

/* ===== SEARCH BOX ===== */
#searchBox {
    width: 180px;
    height: 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    gap: 8px;
}

#searchBox:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

#searchBox .search-icon {
    font-size: 14px;
    opacity: 0.6;
}

/* ===== PINNED APPS ===== */
#pinnedApps {
    display: flex;
    align-items: center;
    gap: 0px;
    flex-shrink: 0;
    height: 36px;
}

.pinned-app {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}

.pinned-app:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pinned-app::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: 0.2s;
}

.pinned-app.active::after {
    opacity: 1;
}

.pinned-app:hover::after {
    opacity: 1;
}

/* ===== START BUTTON ===== */
#startButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    margin: 0 auto;
}

#startButton:hover {
    background: rgba(255, 255, 255, 0.08);
}

#startButton:active {
    transform: scale(0.92);
}

/* ===== START LOGO ===== */
.start-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

#startButton:hover .start-logo {
    transform: scale(1.05);
}

.start-logo-fallback {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1677ff, #0d47a1);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: transform 0.2s ease;
}

#startButton:hover .start-logo-fallback {
    transform: scale(1.05);
}

/* ===== CLOCK ===== */
#clock {
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: #fff;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    min-width: 52px;
}

#clock:hover {
    background: rgba(255, 255, 255, 0.06);
}

#clock .time {
    font-weight: 500;
}

#clock .date {
    font-size: 10px;
    opacity: 0.6;
}

/* ===== WEATHER WIDGET ===== */
#weatherWidget {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    height: 36px;
    border: 1px solid transparent;
}

#weatherWidget:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.05);
}

#weatherIcon {
    font-size: 16px;
}

#weatherTemp {
    font-weight: 500;
}

/* ===== SYSTEM TRAY ===== */
#systemTray {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 15px;
    color: #fff;
    opacity: 0.8;
    flex-shrink: 0;
    height: 36px;
    padding: 0 4px;
}

#systemTray span {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 15px;
    line-height: 1;
}

#systemTray span:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

/* ===== SETTINGS BUTTON ===== */
#settingsButton {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

#settingsButton:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

#settingsButton:active {
    transform: scale(0.92);
}
/* ============================================================
   START MENU
   ============================================================ */
#startMenu {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 85px;
    transform: translateX(-50%);
    width: 700px;
    height: 620px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, .15);
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
    z-index: 1000;
}

.start-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.start-content {
    padding: 25px;
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pinned-item {
    height: 95px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: .25s;
}

.pinned-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .15);
}

.pinned-item span {
    font-size: 12px;
}

/* ========== START FOOTER ========== */
.start-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.start-footer button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}

.start-footer button:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   WINDOWS
   ============================================================ */
.window {
    position: absolute;
    background: rgba(15, 25, 50, .95);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 60px rgba(0, 0, 0, .5);
    z-index: 500;
    min-width: 280px;
    min-height: 200px;
    transition: transform 0.2s ease, opacity 0.2s ease, border-radius 0.2s ease;
}

.window.maximized {
    border-radius: 0 !important;
}

.window.minimized {
    pointer-events: none;
}

.window-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: rgba(255, 255, 255, .05);
    cursor: move;
    user-select: none;
}

.window-title {
    font-weight: bold;
    font-size: 15px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.win-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.win-btn:hover {
    background: rgba(255, 255, 255, .12);
}

.win-btn-close:hover {
    background: #e81123;
}

.win-btn-maximize:hover,
.win-btn-minimize:hover {
    background: rgba(255, 255, 255, .15);
}

.window-body {
    height: calc(100% - 52px);
    overflow: auto;
    padding: 20px;
    line-height: 1.9;
}

.window-body ul {
    list-style: none;
    padding: 0;
}

.window-body ul li {
    padding: 10px 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, .04);
    border-radius: 10px;
    border-right: 3px solid #2d6dff;
}

/* ============================================================
   CONTEXT MENU
   ============================================================ */
.wm-context {
    display: none;
    position: fixed;
    min-width: 240px;
    background: rgba(18, 28, 55, .96);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .35);
    padding: 6px;
    z-index: 999999;
    transform: scale(0.95);
    opacity: 0;
    transition: 0.12s ease;
}

.wm-context.show {
    display: block !important;
    transform: scale(1);
    opacity: 1;
}

.wm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    transition: 0.15s;
}

.wm-item:hover {
    background: rgba(255, 255, 255, .08);
}

.wm-item span {
    flex: 1;
}

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

/* ============================================================
   SETTINGS OVERLAY
   ============================================================ */
.settings-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-overlay.show {
    display: block;
    opacity: 1;
}

/* ============================================================
   SETTINGS MENU
   ============================================================ */
.settings-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 540px;
    max-width: 92%;
    max-height: 80vh;
    background: rgba(20, 25, 45, 0.98);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: 99999;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fff;
    pointer-events: none;
}

.settings-menu.show {
    display: block !important;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    min-height: 60px;
    cursor: default;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-title::before {
    content: '⚙️';
    font-size: 20px;
}

.settings-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.settings-close:active {
    transform: scale(0.92);
}

.settings-body {
    padding: 20px 24px 24px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.settings-body::-webkit-scrollbar {
    width: 4px;
}

.settings-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.settings-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.theme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid transparent;
}

.theme-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.theme-item:active {
    transform: scale(0.95);
}

.theme-item.active {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.theme-item span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.theme-preview {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.theme-item:hover .theme-preview {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-item.active .theme-preview {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.blue-theme {
    background: linear-gradient(135deg, #1677ff, #0d47a1);
}
.purple-theme {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}
.green-theme {
    background: linear-gradient(135deg, #22c55e, #15803d);
}
.red-theme {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.orange-theme {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.pink-theme {
    background: linear-gradient(135deg, #ec4899, #be185d);
}
.dark-theme-preview {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
}
.light-theme-preview {
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-option span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: 0.3s;
}

.slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background: #1677ff;
}

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

/* ============================================================
   NOTIFICATION CENTER
   ============================================================ */
.notification-center {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 340px;
    max-height: 400px;
    background: rgba(20, 25, 45, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.notification-center.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-header span {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.notification-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.notification-list {
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-icon {
    font-size: 20px;
}

.notif-title {
    color: #fff;
    font-size: 14px;
}

.notif-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 2px;
}

/* ============================================================
   GENERAL MOBILE IMPROVEMENTS
   ============================================================ */
body.settings-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
}

button, 
.pinned-item, 
.wm-item, 
.desktop-icon,
#settingsButton,
#startButton {
    touch-action: manipulation;
    cursor: pointer;
}

input, textarea, button, select, div {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ===== TABLET ===== */
@media (max-width: 900px) {
    #taskbar {
        height: 54px;
        padding: 0 10px;
    }
    
    #searchBox {
        width: 140px;
        font-size: 12px;
        height: 32px;
        padding: 0 12px;
    }
    
    .pinned-app {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    #startButton {
        width: 36px;
        height: 36px;
        padding: 4px;
    }
    
    .start-logo {
        width: 24px;
        height: 24px;
    }
    
    .start-logo-fallback {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }
    
    #settingsButton {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    #systemTray {
        font-size: 13px;
        gap: 3px;
    }
    
    #systemTray span {
        padding: 3px 4px;
        font-size: 13px;
    }
    
    #clock {
        font-size: 11px;
        min-width: 44px;
        padding: 2px 6px;
        line-height: 14px;
    }
    
    #clock .date {
        font-size: 9px;
    }
    
    #weatherWidget {
        font-size: 11px;
        padding: 2px 8px;
        height: 32px;
    }
    
    #weatherIcon {
        font-size: 14px;
    }
    
    #weatherTemp {
        font-size: 11px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    #taskbar {
        height: 48px;
        padding: 0 8px;
        border-radius: 14px;
        bottom: 8px;
        width: 98%;
    }
    
    #searchBox {
        display: none;
    }
    
    #pinnedApps {
        display: none;
    }
    
    #weatherWidget {
        display: none;
    }
    
    #startButton {
        width: 34px;
        height: 34px;
        padding: 3px;
        margin: 0;
    }
    
    .start-logo {
        width: 22px;
        height: 22px;
        border-radius: 4px;
    }
    
    .start-logo-fallback {
        width: 22px;
        height: 22px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    #settingsButton {
        width: 30px;
        height: 30px;
        font-size: 15px;
        border-radius: 6px;
    }
    
    #systemTray {
        font-size: 12px;
        gap: 1px;
        padding: 0 2px;
        height: 30px;
    }
    
    #systemTray span {
        padding: 2px 4px;
        font-size: 12px;
    }
    
    #clock {
        font-size: 10px;
        min-width: 36px;
        padding: 2px 4px;
        line-height: 13px;
    }
    
    #clock .date {
        font-size: 8px;
    }
    
    /* استارت منو */
    #startMenu {
        width: 95%;
        height: 75%;
    }
    
    .pinned-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .window {
        min-width: 200px !important;
        min-height: 150px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100% - 20px) !important;
        max-height: calc(100% - 100px) !important;
    }
    
    .window.maximized {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
    }
    
    .window-header {
        height: 46px;
        padding: 0 12px;
    }
    
    .window-title {
        font-size: 13px;
    }
    
    .win-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    
    .window-body {
        padding: 15px;
        font-size: 14px;
    }
    
    .desktop-icon {
        width: 70px;
    }
    
    .icon-img {
        font-size: 34px;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    #taskbar {
        height: 42px;
        padding: 0 6px;
        border-radius: 12px;
        bottom: 6px;
    }
    
    #startButton {
        width: 30px;
        height: 30px;
        padding: 2px;
    }
    
    .start-logo {
        width: 18px;
        height: 18px;
        border-radius: 3px;
    }
    
    .start-logo-fallback {
        width: 18px;
        height: 18px;
        font-size: 10px;
        border-radius: 3px;
    }
    
    #settingsButton {
        width: 26px;
        height: 26px;
        font-size: 13px;
        border-radius: 5px;
    }
    
    #systemTray {
        font-size: 10px;
        gap: 0px;
        padding: 0 1px;
        height: 26px;
    }
    
    #systemTray span {
        padding: 1px 3px;
        font-size: 10px;
    }
    
    #clock {
        font-size: 9px;
        min-width: 30px;
        padding: 1px 3px;
        line-height: 11px;
    }
    
    #clock .date {
        font-size: 7px;
    }
    
    .desktop-icon {
        width: 60px;
    }
    
    .icon-title {
        font-size: 11px;
    }
    
    .pinned-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .window {
        min-width: 150px !important;
        min-height: 120px !important;
        max-height: calc(100% - 80px) !important;
    }
    
    .window-header {
        height: 40px;
        padding: 0 10px;
    }
    
    .window-title {
        font-size: 12px;
    }
    
    .win-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .window-body {
        padding: 12px;
        font-size: 13px;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    #taskbar {
        height: 38px;
        padding: 0 4px;
        border-radius: 10px;
        bottom: 4px;
        width: 99%;
    }
    
    #startButton {
        width: 26px;
        height: 26px;
        padding: 2px;
    }
    
    .start-logo {
        width: 16px;
        height: 16px;
        border-radius: 3px;
    }
    
    .start-logo-fallback {
        width: 16px;
        height: 16px;
        font-size: 9px;
        border-radius: 3px;
    }
    
    #settingsButton {
        width: 22px;
        height: 22px;
        font-size: 11px;
        border-radius: 4px;
    }
    
    #systemTray {
        font-size: 9px;
        gap: 0px;
        padding: 0 1px;
        height: 22px;
    }
    
    #systemTray span {
        padding: 1px 2px;
        font-size: 9px;
    }
    
    #clock {
        font-size: 8px;
        min-width: 26px;
        padding: 1px 2px;
        line-height: 10px;
    }
    
    #clock .date {
        font-size: 6px;
    }
}