* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0f172a;
    color: #f8fafc;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

/* Welcome Screen Styling (Part 1) */
.welcome-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #38bdf8;
}

.welcome-card h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.welcome-card p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.5;
}

#enter-btn {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#enter-btn:hover {
    background-color: #0ea5e9;
}

/* Desktop & Top Bar Styling (Part 2) */
#desktop-screen {
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920');
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.top-bar {
    height: 35px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    z-index: 10;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.os-name {
    font-weight: 700;
}

.status-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.top-bar-right {
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

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

.desktop-icon {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.icon-img {
    font-size: 32px;
}

.desktop-icon span {
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* Window Styling & Interaction (Part 3) */
.window {
    position: absolute;
    top: 100px;
    left: 150px;
    width: 450px;
    height: 320px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.window.hidden {
    display: none;
}

.window-header {
    height: 36px;
    background: rgba(30, 41, 59, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    cursor: grab;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

#window-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.close-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    background: #dc2626;
}

.window-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    color: #cbd5e1;
    font-size: 14px;
}

/* App Layout Styles (Part 4) */
.app-container {
    display: flex;
    height: 100%;
    gap: 15px;
}

.app-sidebar {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 12px;
}

.app-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    text-align: left;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.app-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.app-tab-btn.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-weight: 600;
}

.app-main-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.app-main-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #f8fafc;
}

.app-main-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
}

/* Calculator Styles (Part 5) */
.calc-btn {
    padding: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.calc-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}