/* Complete styles.css */
:root {
    --window-border-radius: 8px;
    --accent-color: rgb(0, 120, 212);
    --bg-color: #1e85f1;
    --window-bg: rgba(255, 255, 255, 0.95);
    --taskbar-bg: rgba(32, 32, 32, 0.85);
    --start-menu-bg: rgba(32, 32, 32, 0.95);
    --window-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    --window-border: 1px solid rgba(200, 200, 200, 0.2);
    --text-color: #ffffff;
    --window-drag-opacity: 0.6;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-color);
}

.desktop {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(45deg, #1e85f1 0%, #2c52c3 100%);
}

/* Window Styles */
.window {
    position: absolute;
    background: var(--window-bg);
    border-radius: var(--window-border-radius);
    box-shadow: var(--window-shadow);
    border: var(--window-border);
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 240px;
    backdrop-filter: blur(20px);
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.window.dragging {
    opacity: var(--window-drag-opacity);
    transition: none;
}

.window.maximized {
    border-radius: 0;
    padding: 0;
}

.window-title {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--window-border-radius) var(--window-border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
    height: 32px;
    box-sizing: border-box;
}

.window.maximized .window-title {
    border-radius: 0;
}

.window-title-text {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

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

.window-button {
    width: 40px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #000;
    font-size: 14px;
    transition: background-color 0.2s;
}

.window-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.window-button.close:hover {
    background: #e81123;
    color: white;
}

.window-content {
    flex: 1;
    padding: 16px;
    overflow: auto;
    background: var(--window-bg);
    position: relative;
    height: calc(100% - 32px);
    box-sizing: border-box;
}

.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}

/* Taskbar Styles */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    z-index: 1000;
}

.taskbar-left {
    display: flex;
    align-items: center;
    padding-left: 4px;
    flex: 1;
}

.taskbar-right {
    display: flex;
    align-items: center;
}

.start-button, .arrange-windows-button {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 4px;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.start-button:hover, .arrange-windows-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-button i {
    font-size: 20px;
}

.arrange-windows-button i {
    font-size: 16px;
}

.taskbar-items {
    display: flex;
    gap: 2px;
    height: 100%;
    padding: 0 2px;
}

.taskbar-item {
    min-width: 48px;
    max-width: 200px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.taskbar-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

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

.taskbar-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    font-size: 13px;
}

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

.taskbar-item.active {
    background: rgba(255, 255, 255, 0.15);
}

.taskbar-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--accent-color);
}

.system-tray {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.clock {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
}

/* Start Menu Styles */
.start-menu {
    position: fixed;
    bottom: 48px;
    left: 4px;
    width: 300px;
    height: 500px;
    background: var(--start-menu-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px 12px 0 0;
    box-shadow: var(--window-shadow);
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px;
    z-index: 1001;
    color: var(--text-color);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.start-menu.active {
    opacity: 1;
    visibility: visible;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding-right: 4px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.start-menu-item i {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.start-menu-item span {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Application-specific styles */
.editor {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    padding: 8px;
    background: transparent;
    color: #000;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

.file-explorer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-item {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
}

.file-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.file-item i {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.calendar {
    padding: 16px;
    color: #000;
}

.calendar h3 {
    margin: 0 0 16px 0;
    color: #000;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-table th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th,
.task-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
}

.task-table th {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .taskbar-item-text {
        display: none;
    }

    .taskbar-item {
        min-width: 40px;
        padding: 0 8px;
    }

    .start-menu {
        width: 100%;
        left: 0;
    }

    .window {
        width: 100% !important;
        height: calc(100% - 48px) !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0;
    }

    .window-title {
        border-radius: 0;
    }

    .resize-handle {
        display: none;
    }

    .system-tray {
        padding: 0 8px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.window {
    animation: fadeIn 0.3s ease-out;
}
