/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --background-color: #667eea;
    --surface-color: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --text-light: #666;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --info-color: #3498db;
    --header-bg: #f0f0f0;
    --desktop-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --taskbar-bg: rgba(0, 0, 0, 0.8);
}

/* Dark Theme */
body.dark-theme {
    --surface-color: rgba(40, 44, 52, 0.95);
    --text-color: #e4e6ea;
    --text-light: #b0b3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --header-bg: #3a3a3a;
    --desktop-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --taskbar-bg: rgba(20, 20, 20, 0.9);
}

/* Dark theme app-specific styles */
body.dark-theme .text-editor {
    background: #2d3748;
    color: #e2e8f0;
}

/* Fix for note writing area - target both class and ID */
body.dark-theme #text-editor-content {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* Fix for paint app toolbar */
body.dark-theme .paint-content .toolbar,
body.dark-theme div[style*="background: #f8f9fa"] {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}

body.dark-theme .calc-display {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme .calc-btn {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #2d3748;
}

body.dark-theme .calc-btn:hover {
    background: #2d3748;
}

/* Keep operator buttons with their gradient */
body.dark-theme .calc-btn.operator {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

body.dark-theme .file-toolbar {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .file-btn {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #2d3748;
}

body.dark-theme .file-btn:hover {
    background: #2d3748;
}

body.dark-theme #paint-canvas {
    background: #f7fafc !important;
}

/* Override inline styles for toolbars in dark mode */
body.dark-theme [style*="background: #f8f9fa"] {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}

body.dark-theme [style*="background: #fafafa"] {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* Ensure text editor textarea gets dark theme */
body.dark-theme textarea[style*="background: #fafafa"] {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

body.dark-theme .paint-tool {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #2d3748;
}

body.dark-theme .paint-tool:hover {
    background: #2d3748;
    border-color: #667eea;
}

body.dark-theme .paint-tool.active {
    background: #667eea;
    color: white;
}

body.dark-theme .wallpaper-option {
    border-color: #4a5568;
}

body.dark-theme .wallpaper-option:hover {
    border-color: var(--primary-color);
}

body.dark-theme .wallpaper-option.active {
    border-color: var(--primary-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: var(--desktop-bg);
    height: 100vh;
    user-select: none;
    position: relative;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}

.boot-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-content {
    text-align: center;
    color: white;
}

.boot-logo {
    margin-bottom: 30px;
}

.boot-logo i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s infinite;
}

.boot-logo h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 3px;
}

.boot-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0;
    border-radius: 2px;
    animation: loading 3s ease-out forwards;
}

.boot-text {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Desktop */
.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    transition: filter 0.3s ease;
}

.desktop.blurred {
    filter: blur(2px);
}

/* Desktop Icons */
.desktop-icon {
    position: absolute;
    width: 80px;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    backdrop-filter: blur(10px);
}

.desktop-icon.selected {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.desktop-icon-img {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.desktop-icon-name {
    font-size: 12px;
    font-weight: 500;
}

/* Windows */
.window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background: var(--surface-color);
    border-radius: 4px;
    box-shadow: 0 25px 50px var(--shadow-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    z-index: 10;
    resize: both;
    overflow: hidden;
    animation: windowOpen 0.3s ease-out;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 60px) !important;
    border-radius: 0;
    resize: none;
}

.window.minimizing {
    animation: windowMinimize 0.3s ease-out forwards;
}

.window-header {
    height: 40px;
    background: var(--header-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.window-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.window-title {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.window-control::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.window-control:hover::before {
    width: 100%;
    height: 100%;
}

.window-control.minimize:hover {
    background: rgba(0, 0, 0, 0.1);
}

.window-control.maximize:hover {
    background: rgba(0, 0, 0, 0.1);
}

.window-control.close:hover {
    background: #ff5f56;
    color: white;
}

.window-content {
    height: calc(100% - 40px);
    padding: 20px;
    overflow: auto;
    position: relative;
}

/* Window Resize Handles */
.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10;
}

.resize-n {
    top: 0;
    left: 10px;
    right: 10px;
    height: 5px;
    cursor: ns-resize;
}

.resize-s {
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 5px;
    cursor: ns-resize;
}

.resize-e {
    top: 10px;
    right: 0;
    bottom: 10px;
    width: 5px;
    cursor: ew-resize;
}

.resize-w {
    top: 10px;
    left: 0;
    bottom: 10px;
    width: 5px;
    cursor: ew-resize;
}

.resize-ne {
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
}

.resize-nw {
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
}

.resize-se {
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    cursor: se-resize;
}

.resize-sw {
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
}

.window.maximized .resize-handle {
    display: none;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.start-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.start-button.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.taskbar-apps {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.taskbar-apps::-webkit-scrollbar {
    display: none;
}

.taskbar-app {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.taskbar-app::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.taskbar-app.active::before {
    width: 100%;
}

.taskbar-app.active {
    background: rgba(255, 255, 255, 0.3);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 14px;
}

.system-tray > div {
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.system-tray > div:hover {
    background: rgba(255, 255, 255, 0.1);
}

.battery-icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.clock {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 70px;
    left: 15px;
    width: 400px;
    max-height: 600px;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border-radius: 6px;
    box-shadow: 0 25px 50px var(--shadow-color);
    display: none;
    z-index: 2000;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.start-menu.show {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.start-menu-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
}

.user-status {
    font-size: 12px;
    opacity: 0.8;
}

.start-menu-content {
    padding: 20px;
    max-height: 450px;
    overflow-y: auto;
}

.start-menu-section {
    margin-bottom: 25px;
}

.start-menu-section h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.app-icon:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.app-icon-img {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.app-icon-name {
    font-size: 11px;
    color: var(--text-color);
    font-weight: 500;
}

.quick-actions {
    display: flex;
    gap: 10px;
}

.quick-action {
    flex: 1;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-color);
}

.quick-action:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 15px 30px var(--shadow-color);
    display: none;
    z-index: 3000;
    min-width: 180px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.context-menu.show {
    display: block;
    animation: contextMenuAppear 0.2s ease-out;
}

.context-menu-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.context-menu-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

/* Notifications */
.notification-area {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 25px var(--shadow-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    min-width: 300px;
    animation: notificationSlide 0.4s ease-out;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.info {
    border-left: 4px solid var(--info-color);
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6000;
    display: none;
}

.loading-indicator.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* App-specific Styles */
.calculator {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.calc-display {
    grid-column: span 4;
    height: 80px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calc-btn {
    height: 60px;
    border: none;
    border-radius: 8px;
    background: #e9ecef;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calc-btn:hover {
    background: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.calc-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calc-btn.operator {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.calc-btn.operator:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.text-editor {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    background: #fafafa;
    padding: 15px;
    line-height: 1.6;
}

.file-manager {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.file-toolbar {
    height: 50px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
}

.file-btn {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.file-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.file-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
    margin-bottom: 5px;
}

.file-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.file-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Animations */
@keyframes loading {
    to { width: 100%; }
}

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

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

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes windowMinimize {
    to {
        opacity: 0;
        transform: scale(0.1) translateY(100vh);
    }
}

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

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Calendar Popup */
.calendar-popup {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 300px;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border-radius: 6px;
    box-shadow: 0 25px 50px var(--shadow-color);
    display: none;
    z-index: 2000;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.calendar-popup.show {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
    border-radius: 4px;
}

.calendar-nav:hover {
    background: rgba(102, 126, 234, 0.1);
}

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

.calendar-day {
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.1);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* Sleep Mode */
.sleep-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #666;
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    z-index: 10000;
    font-size: 18px;
    cursor: pointer;
}

.sleep-mode.active {
    display: flex;
}

/* Wallpaper Options */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.wallpaper-option {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background-size: cover;
    background-position: center;
    position: relative;
}

.wallpaper-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.wallpaper-option.active {
    border-color: var(--primary-color);
}

.wallpaper-option.gradient1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wallpaper-option.gradient2 {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
}

.wallpaper-option.gradient3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wallpaper-option.gradient4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wallpaper-option.gradient5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.wallpaper-option.gradient6 {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
@media (max-width: 768px) {
    .start-menu {
        width: calc(100vw - 30px);
        left: 15px;
    }
    
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .desktop-icon {
        width: 70px;
    }
    
    .window {
        min-width: 300px;
    }
}