:root {
    --accent: 137, 180, 250;
    --base: #1e1e2e;
    --mantle: #181825;
    --surface0: #313244;
    --surface1: #45475a;
    --surface2: #585b70;
    --overlay0: 156, 160, 176;
    --overlay1: 140, 143, 161;
    --overlay2: 124, 127, 147;
    --subtext0: #a6adc8;
    --subtext1: #bac2de;
    --text: #cdd6f4;
    --editor-font: "Jetbrains Mono", monospace;
    --console-font: "Fira Code", monospace;
    --tab-icon-size: 2rem;
    --tab-width: 16rem;
    --terminal-height: 12rem;
    --taskbar-height: 3rem;
}

* {
    margin: 0;
    padding: 0;
    font-family: var(--editor-font);
    font-size: 1rem;
}

body {
    color: var(--text);
    background: var(--base);
}

#fullscreen-overlay {
    display: flex;
    position: fixed;
    z-index: 9999;
    inset: 0;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(0.3rem);
    transition: opacity 0.3s ease;
}

#prompt-box {
    background: var(--base);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 2rem rgba(var(--accent), 0.5);
    max-width: 40rem;
    width: 90%;
    animation: pop-in 0.3s ease;
}

#prompt-box h2 {
    margin: 0 0 1rem;
    font-weight: 700;
}

#prompt-box p {
    margin-bottom: 1rem;
}

#prompt-box button {
    background: rgb(var(--accent));
    color: var(--base);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

#prompt-box button:hover {
    scale: 1.05;
}

@keyframes pop-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hidden { display: none; }

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#desktop {
    position: absolute;
    width: 100vw;
    height: 100vh;
}

#desktop img {
    width: 100vw;
    display: block;
    overflow: hidden;
}

#taskbar {
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--taskbar-height);
    background: var(--mantle);
    z-index: 999;
    align-content: space-between;
    justify-content: center;
    user-select: none;
}

#taskbar .left-side {
    position: absolute;
    display: flex;
    top: 0.25rem;
    left: 1rem;
    gap: 0.75rem;
    flex-direction: row;
    align-content: center;
}

#taskbar .left-side .app {
    display: flex;
    height: calc(var(--taskbar-height) - 0.5rem);
    width: calc(var(--taskbar-height) - 0.5rem);
    align-content: center;
    align-items: center;
    border-radius: 5px;
}

#taskbar .left-side img {
    height: calc(100% - 0.5rem);
    width: calc(100% - 0.5rem);
    margin-left: 0.25rem;
    border-radius: 3px;
}

#taskbar .left-side .app:hover {
    background: rgba(var(--overlay0), 0.1);
}

#taskbar .right-side {
    display: flex;
    position: absolute;
    right: 1rem;
    bottom: 0.25rem;
    text-align: center;
    font-weight: 500;
    gap: 0.5rem;
}

#vscode {
    position: absolute;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

#activity-bar {
    display: flex;
    position: absolute;
    box-sizing: border-box;
    padding: 0.25rem;
    width: 100%;
    height: 2.5rem;
    background: var(--mantle);
    justify-content: space-between;
    border-bottom: 1px solid rgba(var(--overlay0), 0.5);
}

#activity-bar .left-side {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.25rem;
}

#avatar {
    display: flex;
    height: 2rem;
    padding-right: 0.5rem;
}

#avatar:hover {
    cursor: pointer;
}

.util-link {
    display: flex;
    align-items: center;
    font-weight: 700;
    user-select: none;
    border-radius: 0.5rem;
    height: 2rem;
    padding: 0 0.5rem;
}

.util-link:hover {
    cursor: pointer;
    background: rgba(var(--overlay0), 0.1);
}

.middle-side {
    display: flex;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    gap: 0.5rem;
}

.util-link.previous,
.util-link.next {
    font-family: var(--console-font);
}

#command-palette {
    display: flex;
    padding: 0 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(var(--overlay0), 0.5);
    border: 1px solid rgba(var(--overlay1), 0.5);
    border-radius: 0.5rem;
    user-select: none;
    height: 1.8rem;
    width: 300px;
    caret-color: var(--text);
    outline: none;
    color: var(--text);
}

#command-palette::placeholder {
    color: var(--text);
    font-weight: 500;
}

#command-palette:focus {
    border: 1px solid rgb(var(--accent));
    box-shadow: 0 0 4px rgb(var(--accent));
}

#activity-bar .right-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem;
}

#activity-bar .right-side:hover {
    cursor: pointer;
}

.windows-button {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.windows-button.green {
    background: #28c940;
}

.windows-button.yellow {
    background: #fdbc2e;
}

.windows-button.red {
    background: #ff5f57;
}

#editor {
    display: flex;
    height: calc(100vh - 2.5rem - 2rem);
    width: 100%;
    position: absolute;
    top: 2.5rem;
}

#editor .left-side {
    display: flex;
    width: var(--tab-width);
    background: var(--mantle);
}

#tabs {
    width: calc(var(--tab-icon-size) + 1rem);
    overflow-x: hidden;
    border-right: 1px solid rgba(var(--overlay0), 0.5);
    align-items: center;
}

#tabs img {
    padding: 0.5rem;
    width: var(--tab-icon-size);
}

#tabs .active {
    background: rgba(var(--accent), 0.1);
}

#explorer {
    flex: 1;
    padding-top: 0.5rem;
}

#explorer .explorer-title {
    font-weight: 800;
    padding: 0 0 0.5rem 0.5rem;
    user-select: none;
}

#explorer .file {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

#explorer .file li {
    display: block;
    padding: 0.25rem 0.5rem;
    color: var(--subtext0);
    cursor: pointer;
    transition: background 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

#explorer .file li:hover {
    background: rgba(var(--accent), 0.1);
    color: var(--text);
}

#explorer .file .active {
    background: rgba(var(--accent), 0.15);
    color: var(--text);
    border-right: 2px solid rgb(var(--accent));
}

#editor .right-side {
    display: flex;
    width: calc(100vw - var(--tab-width));
    background: var(--base);
    flex-direction: column;
}

#code-editor {
    display: flex;
    flex: 1;
    background: var(--base);
}

#terminal {
    display: flex;
    flex-direction: column;
    height: var(--terminal-height);
    border-top: 1px solid rgba(var(--overlay2), 0.75);
}

#terminal-bar {
    display: flex;
    border-bottom: 1px solid rgba(var(--overlay0), 0.2);
    user-select: none;
    width: calc((100vw - var(--tab-width)));
}

#terminal-bar .left-side {
    display: flex;
    background: transparent;
    font-weight: 500;
    width: 40%;
}

#terminal-bar .left-side .label {
    padding: 0.5rem;
}

#terminal-bar .left-side .label.active {
    background: rgba(var(--accent), 0.1);
    border-bottom: 2px solid rgb(var(--accent));
}

#status-bar {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100vw - 2rem);
    height: 2rem;
    align-items: center;
    justify-content: space-between;
    background: var(--mantle);
    font-weight: 300;
    user-select: none;
    padding: 0 1rem;
}

#status-bar .left-side {
    display: flex;
    padding-left: 0.5rem;
}

#status-bar img {
    height: 1rem;
}
