* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    user-select: none;
}

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.desktop {
    width: 100vw;
    height: calc(100vh - 48px);
    background: linear-gradient(135deg, #0078D7 0%, #005A9E 50%, #003D6B 100%);
    position: relative;
    overflow: hidden;
}

.desktop-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    align-items: flex-start;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
}

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

.desktop-icon:active {
    background: rgba(255, 255, 255, 0.3);
}

.desktop-icon .icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.desktop-icon .icon-label {
    color: white;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.start-button {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

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

.start-button.active {
    background: rgba(255, 255, 255, 0.2);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    min-width: 280px;
}

.search-bar:hover {
    background: rgba(255, 255, 255, 0.15);
}

.taskbar-apps {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.taskbar-app {
    width: 46px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    transition: background 0.2s;
}

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

.taskbar-app.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: white;
}

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

.system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
}

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

#clock {
    font-size: 12px;
}

.start-menu {
    position: fixed;
    bottom: 48px;
    left: 0;
    width: 500px;
    height: 600px;
    background: rgba(32, 32, 32, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: row;
    z-index: 10000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
}

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

.start-menu-left {
    width: 250px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 32px;
}

.user-name {
    color: white;
    font-size: 14px;
}

.start-app-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.start-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 13px;
}

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

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

.start-menu-right {
    flex: 1;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-content: start;
}

.live-tile {
    height: 100px;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.live-tile:hover {
    transform: scale(1.02);
}

.live-tile.blue { background: #0078D7; }
.live-tile.green { background: #107C10; }
.live-tile.orange { background: #FF8C00; }
.live-tile.red { background: #E81123; }
.live-tile.purple { background: #5C2D91; }

.start-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
}

.power-button {
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

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

.window {
    position: absolute;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-width: 400px;
    min-height: 300px;
    z-index: 100;
}

.window.active {
    z-index: 1000;
}

.window-titlebar {
    background: #F0F0F0;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    cursor: move;
}

.window-title {
    font-size: 13px;
    color: #333;
    font-weight: 400;
}

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

.window-btn {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #333;
}

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

.window-btn.close:hover {
    background: #E81123;
    color: white;
}

.window-toolbar {
    background: #F0F0F0;
    padding: 6px 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
}

.toolbar-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.address-bar {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 13px;
}

.window-menu {
    display: flex;
    gap: 15px;
    padding: 4px 12px;
    background: #F0F0F0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 13px;
}

.menu-item {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}

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

.window-content {
    flex: 1;
    overflow: auto;
    position: relative;
}

.explorer-sidebar {
    width: 180px;
    background: #F5F5F5;
    padding: 10px;
    float: left;
    height: 100%;
    border-right: 1px solid #E0E0E0;
}

.sidebar-item {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 2px;
}

.sidebar-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

.sidebar-item.active {
    background: #E3F2FD;
    color: #0078D7;
}

.explorer-main {
    margin-left: 180px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.folder {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.folder:hover {
    background: rgba(0, 0, 0, 0.05);
}

.notepad-text {
    width: 100%;
    height: 100%;
    border: none;
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    resize: none;
    outline: none;
}

.calc-display {
    background: #1A1A1A;
    color: white;
    text-align: right;
    padding: 20px;
    font-size: 36px;
    font-weight: 300;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #333;
    flex: 1;
}

.calc-btn {
    border: none;
    padding: 20px;
    font-size: 18px;
    cursor: pointer;
    background: #F2F2F2;
    transition: background 0.1s;
}

.calc-btn:hover {
    background: #E0E0E0;
}

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

.calc-btn.operator:hover {
    background: #E0820F;
}

.calc-btn.equals {
    background: #0078D7;
    color: white;
    grid-column: 4;
    grid-row: 4 / 6;
}

.calc-btn.equals:hover {
    background: #005A9E;
}

.calc-btn.clear, .calc-btn.backspace {
    background: #E0E0E0;
}

.settings-sidebar {
    width: 200px;
    float: left;
    height: 100%;
    padding: 15px;
    background: #F5F5F5;
    border-right: 1px solid #E0E0E0;
}

.settings-nav-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 2px;
}

.settings-nav-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

.settings-nav-item.active {
    background: #E3F2FD;
    color: #0078D7;
}

.settings-main {
    margin-left: 200px;
    padding: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 13px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCC;
    transition: 0.3s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: #0078D7;
}

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

input[type="range"] {
    width: 150px;
}

.edge-content {
    padding: 40px;
    text-align: center;
}

.edge-content h1 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 300;
}

.edge-content p {
    color: #666;
    font-size: 14px;
}

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

.window.minimized {
    display: none !important;
}

.window-titlebar.dark {
    background: #1A1A1A;
}

.window-titlebar.dark .window-title {
    color: white;
}

.window-titlebar.dark .window-btn {
    color: white;
}

.window-titlebar.dark .window-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #CCC;
    border-radius: 4px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 20000;
    min-width: 180px;
    padding: 4px 0;
}

.context-item {
    padding: 6px 20px;
    font-size: 13px;
    cursor: pointer;
}

.context-item:hover {
    background: #E3F2FD;
}
