body {
    margin: 0;
    padding: 0;
    background-image: url('./background.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.top-bar {
    position: absolute;
    width: 100%;
    display: flex;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.125);
    color: #fff;
    justify-content: space-between;
    gap: 32px;
    box-sizing: border-box;
    padding: 4px 0;
    align-items: center;
    z-index: 10;
}

.os-title {
    margin-left: 16px;
    font-weight: 700;
    background-color: rgba(256, 256, 256, 0.125);
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
}

.status-badge {
    margin-left: 16px;
    background-color: rgba(256, 256, 256, 0.25);
    padding: 4px 12px;
    border-radius: 16px;
}

.time-display {
    margin-right: 16px;
    background-color: rgba(256, 256, 256, 0.125);
    padding: 4px 12px;
    border-radius: 16px;
}

#desktopApps {
    padding-top: 64px;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
}

.app-icon {
    text-align: center;
    padding: 8px;
    filter: drop-shadow(0 0 8px rgb(0, 0, 0));
    width: fit-content;
    cursor: pointer;
    user-select: none;
    border-radius: 16px;
    transition: background-color 0.2s;
}

.app-icon img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.app-icon p {
    margin: 4px 0 0 0;
    color: #fff;
    font-size: 14px;
}

.app-icon.selected {
    background-color: rgba(256, 256, 256, 0.25);
    outline: 2px dashed rgba(255, 255, 255, 0.5);
}

.window {
    border: solid 2px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    position: absolute;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.125);
    z-index: 1;
}

.windowheader {
    width: 100%;
    display: flex;
    align-items: center;
    cursor: grab;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 8px 16px;
    user-select: none;
}

.headertext {
    margin: 0px;
    color: #fff;
    font-weight: 500;
}

.closebutton {
    width: 16px;
    height: 16px;
    cursor: pointer;
    background-color: #ff0000;
    border-radius: 16px;
    border: solid 1px rgba(0, 0, 0, 0.25);
}

.window-content {
    padding: 16px;
    color: #ffffff;
    background-color: rgb(26, 26, 26)
}

.app-container {
    background-color: #fff;
    margin: 6px;
    border-radius: 12px;
    width: 520px;
    height: 480px;
    padding: 16px;
    font-family: Courier, monospace;
    display: flex;
    box-sizing: border-box;
}

.sidebar {
    background-color: #F9F9F9;
    width: 180px;
    margin-right: 16px;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    box-sizing: border-box;
}

.sidebar-item {
    padding: 8px;
    background-color: #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-item:hover {
    background-color: #ddd;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    color: #000;
}

.sudoku-app-container {
    background-color: #383838;
    margin: 8px;
    border-radius: 12px;
    padding: 16px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 35px);
    grid-template-rows: repeat(9, 35px);
    border: 2px solid #333;
    background-color: #fff;
}

.sudoku-cell {
    width: 35px;
    height: 35px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 35px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}

.sudoku-cell:nth-child(3n) { border-right: 2px solid #333; }
.sudoku-cell:nth-child(9n) { border-right: none; }
.sudoku-grid .sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-grid .sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid #333;
}

.sudoku-cell.initial {
    background-color: #f0f0f0;
    color: #555;
    cursor: not-allowed;
}

.sudoku-cell.selected {
    background-color: #bbf2ff !important;
}

.sudoku-cell:not(.initial):hover {
    background-color: #e6f7ff;
}

.sudoku-controls {
    margin-top: 14px;
    width: 100%;
}

.sudoku-numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.num-btn {
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}

.num-btn:hover {
    background-color: #fff4b7;
}

.clear-btn {
    grid-column: span 1;
    background-color: #ffeef0;
    color: #000000;
    border-color: #000000;
}

.clear-btn:hover {
    background-color: #ffd1d5;
}