:root {
    --bg: #14142b;
    --panel: #16214a;
    --text: #e8e6f0;
    --border: #2b2b45;
    --accent: #9fd3e8;
    --accent-hover: #b6e0f0;
    --hover: rgba(255, 255, 255, 0.08);
    --selected: rgba(255, 255, 255, 0.12);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    text-align: center;
    padding: 18px;
    background-image: url(images/desktop-wallpaper.png);
    background-size: cover;
    height: 100vh;
}

.window {
    position: absolute;
    top: calc(50% - 300px);
    left: calc(50% - 400px);

    width: 800px;
    margin: 0 auto;
    padding: 22px 20px;

    background-color: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.window :is(h1, h2) {
    margin: 3px 4px;
    padding: 2px 4px;
}

.window img,
.welcome-image {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.window-topbar {
    position: absolute;
    inset: 0 0 auto 0;

    display: flex;
    justify-content: space-between;

    padding: 14px 18px;
    box-sizing: border-box;

    backdrop-filter: blur(6px);
    background-color: rgba(10, 10, 20, 0.35);
    color: #fff;
    border-bottom: 1px solid var(--border);
}

.window-close {
    float: right;
    cursor: pointer;

    margin-top: -14px;
    margin-right: -10px;

    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.window-close:hover {
    opacity: 1;
}

.windowheader {
    display: flex;
    justify-content: space-between;

    cursor: grab;
    user-select: none;

    margin-bottom: 9px;
    padding-bottom: 7px;

    text-align: left;
    font-weight: 700;

    border-bottom: 1px solid var(--border);
}

.desktopApps {
    padding-top: 60px;
    padding-left: 14px;
}

.app-icon {
    width: 78px;
    padding: 6px 8px;

    text-align: center;
    cursor: pointer;

    transition: transform 0.15s ease;
}

.app-icon:hover {
    transform: translateY(-2px);
}

.app-icon-image {
    width: 62px;
    height: 62px;
    border-radius: 14px;
}

.app-icon-label {
    margin-top: 3px;
    color: #fff;
    font-size: 11px;
}

.footer-link {
    color: var(--accent);
}

.headertext {
    margin: 0;
    font-weight: 700;
}

.header-spacer {
    width: 14px;
    height: 14px;
}

.sliceOfLife-content {
    display: flex;
    text-align: left;
}

.sidebar {
    width: 190px;
    margin-right: 14px;
}

.selected {
    background-color: var(--selected);
    border-radius: 10px;
}

.sidebar-item {
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;

    transition: background-color 0.18s ease;
}

.sidebar-item:hover {
    background-color: var(--hover);
}

.weatherOMeter-content {
    width: 300px;
    text-align: left;
}

.weather-search-row {
    display: flex;
    gap: 6px;
}

.city-input {
    flex: 1;

    padding: 7px 9px;

    color: #fff;
    background-color: var(--hover);

    border: 1px solid var(--border);
    border-radius: 6px;
}

.city-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-button {
    padding: 7px 14px;

    border: none;
    border-radius: 6px;

    background-color: var(--accent);
    color: var(--bg);

    cursor: pointer;
    font-weight: 700;

    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: var(--accent-hover);
}

.weather-result {
    margin-top: 14px;
}

.city-suggestions {
    position: relative;
    margin-top: -3px;

    overflow: hidden;
    border-radius: 6px;

    background-color: var(--bg);
}

.suggestion-item {
    padding: 7px 9px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: var(--hover);
}

.window-sliceoflife {
    display: none;
    top: calc(50% - 250px);
    left: calc(50% - 400px);
}

.window-weather {
    display: none;
    top: calc(50% - 195px);
    left: calc(50% - 300px);
}