* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Desktop Background */
.desktop {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    position: relative;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
}

.start-button {
    background: none;
    border: none;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 14px;
}

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

.start-icon {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 3px;
}

.taskbar-right {
    margin-left: auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.system-tray {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tray-icon {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.clock {
    color: white;
    font-size: 14px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 320px;
    height: 450px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 8px 0 0;
    display: none;
    z-index: 999;
    color: white;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.start-menu.show {
    display: block;
}

.start-menu-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #0078d4, #40e0d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.user-details h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.user-details p {
    font-size: 12px;
    opacity: 0.7;
}

.start-menu-content {
    padding: 20px;
}

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

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 10px;
    padding: 0 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-bottom: 2px;
}

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

.menu-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Desktop Icons */
.desktop-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.icon-label {
    font-size: 13px;
    text-align: center;
    max-width: 90px;
    word-wrap: break-word;
    font-weight: 500;
}

/* Windows */
.window {
    position: fixed;
    top: 60px;
    left: 80px;
    width: 700px;
    height: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 100;
    overflow: hidden;
    animation: windowAppear 0.3s ease-out;
}

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

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

.window.show {
    display: block;
}

.window-header {
    background: #f3f3f3;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    cursor: move;
}

.window-title {
    font-size: 14px;
    font-weight: bold;
}

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

.control-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #28ca42;
}

.close {
    background: #ff5f57;
    color: white;
    font-size: 12px;
}

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

/* Calculator Window */
.calculator {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.calc-display {
    grid-column: span 4;
    background: #1a1a1a;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: right;
    font-size: 24px;
    font-family: 'Consolas', monospace;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.calc-btn {
    padding: 18px;
    font-size: 20px;
    border: none;
    border-radius: 8px;
    background: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.calc-btn:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.calc-btn:active {
    transform: translateY(0);
}

.calc-btn.operator {
    background: #ff9500;
    color: white;
}

.calc-btn.equals {
    background: #007aff;
    color: white;
}

.calc-btn.zero {
    grid-column: span 2;
}

/* File Explorer Window */
.file-explorer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.explorer-toolbar {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.toolbar-btn {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 3px;
}

.toolbar-btn:hover {
    background: #f0f0f0;
}

.explorer-content {
    flex: 1;
    padding: 15px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.folder-item:hover {
    background: #e8e8e8;
}

.folder-icon {
    width: 48px;
    height: 48px;
    background: #ffcc02;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.file-icon {
    width: 48px;
    height: 48px;
    background: #007aff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.item-name {
    font-size: 13px;
    text-align: center;
    max-width: 100px;
    word-wrap: break-word;
}

/* Utility Classes */
.hidden {
    display: none !important;
}
