body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f2f2f2;
}

#desktop {
    width: 100vw;
    height: 100vh;
    background-color: rgb(15, 12, 14);
}

#top-bar {
    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;
    box-sizing: border-box;

    background-color: rgba(10, 10, 12, 0.85);
    border-bottom: 1px solid rgba(180, 0, 30, 0.35);
}

#system-name {
    font-weight: 600;
}

#system-status {
    display: flex;
    align-items: center;
    gap: 14px;
}

#dock {
    position: fixed;
    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    padding: 10px 14px;

    background-color: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(180, 0, 0, 0.35);
    border-radius: 18px;
}

.dock-item {
    position: relative;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    cursor: pointer;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dock-item:hover {
    background-color: #1c1c21;
    transform: translateY(-3px);
}

.dock-item.running::after {
    content: "";

    position: absolute;
    bottom: 3px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background-color: #e3211a;
}

.window {
    position: absolute;
    top: 120px;
    left: 50%;

    width: 600px;
    min-width: 350px;

    transform: translateX(-50%);

    background-color: #151518;
    border: 1px solid #332027;
    border-radius: 14px;

    overflow: hidden;

    z-index: 1;
    display: none;
}

.window-header {
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    background-color: #1c1c21;
    border-bottom: 1px solid #332027;

    user-select: none;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 14px;
    font-weight: 500;
}

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

.window-controls button {
    width: 32px;
    height: 28px;

    border: none;
    border-radius: 7px;

    background: transparent;
    color: #a6a6ad;

    font-size: 16px;
    cursor: pointer;

    transition: background-color 0.2s ease;
}

.window-controls button:hover {
    background-color: #332027;
    color: #f2f2f2;
}

.window-controls button:last-child:hover {
    background-color: #c1122f;
    color: #ffffff;
}

.window-content {
    padding: 20px;
}

.resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 15px;
    height: 15px;

    background-color: #4d333874;
    border-radius: 3px;

    cursor: nwse-resize;
    user-select: none;
}

#terminal-window {
    display: none;
}

.terminal-content {
    padding: 16px;

    background: #0b0b0b;
    color: #f1f1f1;

    font-family: 'Courier New', Courier, monospace;
}

.terminal-output p {
    margin: 4px 0;
}

.terminal-input {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;
}

.terminal-input span {
    color: #e3211a;
    white-space: nowrap;
}

.terminal-input input {
    flex: 1;

    background: transparent;
    border: none;
    outline: none;

    color: #f1f1f1;

    font-family: inherit;
    font-size: inherit;
}

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

.app-launcher {
    position: fixed;

    bottom: 82px;
    left: 20px;

    width: 220px;
    padding: 16px;

    background-color: #151518;
    border: 1px solid #332027;
    border-radius: 14px;

    display: none;
}

.app-launcher h2 {
    margin-top: 0;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px;

    border-radius: 8px;

    cursor: pointer;
}

.app-item:hover {
    background-color: #1c1c21;
}

.file-item {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: 8px;

    cursor: pointer;
}

.file-item:hover {
    background-color: #1c1c21;
}

.file-item i {
    width: 20px;
    text-align: center;
}

#files-content {
    min-height: 200px;
}

#back-button {
    padding: 7px 12px;

    border: 1px solid #332027;
    border-radius: 7px;

    background-color: #1c1c21;
    color: #f2f2f2;

    cursor: pointer;
    font-family: inherit;

    transition: background-color 0.2s ease;
}

#back-button:hover {
    background-color: #332027;
}

#file-viewer-window {
    display: none;
}

.file-viewer-content {
    min-height: 200px;

    background-color: #0f0f12;
}

#file-viewer-content {
    margin: 0;

    white-space: pre-wrap;
    word-wrap: break-word;

    font-family: 'Courier New', Courier, monospace;
    color: #f1f1f1;
}

#image-viewer-window {
    display: none;

    width: 600px;
    min-width: 350px;

    max-width: 75vw;
    max-height: 70vh;
}

.image-viewer-content {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 420px;

    padding: 16px;

    box-sizing: border-box;

    background-color: #0b0b0b;

    overflow: hidden;
}

#image-viewer-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}