:root {
    --bg-desktop: #1a1a1a;
    --bg-topbar: #ffffff;
    --bg-window: #f0f0f0;
    --bg-window-header: #e0e0e0;
    --text-main: #000000;
    --text-sub: #666666;
    --accent: #000000;
    --border: #cccccc;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-mono);
    background-color: var(--bg-desktop);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

#desktop {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
#top-bar {
    height: 30px;
    background-color: var(--bg-topbar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.menu-left {
    display: flex;
    gap: 20px;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 50px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 70px;
    cursor: pointer;
}

.icon-image {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-image img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.icon-image.welcome-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}

.icon-label {
    color: #fff;
    font-size: 11px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* Windows */
.window {
    position: absolute;
    background-color: var(--bg-window);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 280px;
    z-index: 10;
    transition: transform 0.1s ease-out;
}

.window-header {
    height: 28px;
    background-color: var(--bg-window-header);
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: grab;
    border-bottom: 1px solid var(--border);
}

.window-header:active {
    cursor: grabbing;
}

.window-controls {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.close-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #ff5f56;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maximize-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #27c93f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn i, .maximize-btn i {
    width: 6px;
    height: 6px;
    color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.1s;
}

.window-controls:hover i {
    opacity: 1;
}

.window-title {
    font-size: 11px;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
    margin-right: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.window-content {
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 80vh;
    overflow-y: auto;
}

/* Dropdown Menus */
.menu-item {
    position: relative;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
}

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

.dropdown {
    position: absolute;
    top: 28px;
    left: 0;
    background-color: var(--bg-topbar);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-width: 150px;
    display: none;
    flex-direction: column;
    z-index: 2000;
}

.dropdown.active {
    display: flex;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Bottom Bar */
#bottom-bar {
    height: 30px;
    background-color: var(--bg-topbar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.status-left {
    display: flex;
    gap: 15px;
}

.status-item span {
    color: var(--text-sub);
    margin-right: 5px;
}

/* Content Styles */
.welcome-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.2;
}

.welcome-title span.strikethrough {
    text-decoration: line-through;
    opacity: 0.5;
}

.welcome-title span.bold {
    font-weight: 800;
    color: var(--accent);
}

.welcome-desc {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 15px;
    padding: 0;
    background-color: #f0f0f0;
    border-style: none;
}

.connect-img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
    margin: auto;
}

#window-connect .window-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Hidden state */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-icons {
        left: 10px;
        top: 40px;
    }
    .window {
        min-width: 260px;
        max-width: calc(100vw - 20px);
    }
    .window-content {
        padding: 15px;
    }
    .welcome-title {
        font-size: 18px;
    }
}
