
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    background: #000000;
    color: #ffffff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#os {
    width: 760px;
    max-width: 100%;
    background: #0a0a0a;
    padding: 36px 32px;
    border-radius: 16px;
    border: 1px solid #222222;
    box-shadow: 0 20px 60px rgba(0,0,0,0.95);
}

#topbar {
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 2px solid #ffffff;
    margin-bottom: 24px;
    font-size: 1rem;
    color: #888888;
}

#time {
    color: #ffffff;
    font-weight: 700;
}

#weather {
    color: #aaaaaa;
}


#search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

#search {
    flex: 1;
    padding: 14px 18px;
    border-radius: 6px;
    border: 1px solid #333333;
    background: #000000;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Space Mono', monospace;
    outline: none;
}

#search::placeholder {
    color: #555555;
}

#search:focus {
    border-color: #ffffff;
    background: #050505;
}

#search-container button {
    padding: 14px 28px;
    border-radius: 6px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

#search-container button:hover {
    background: #ffffff;
    color: #000000;
}


#apps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.app {
    background: transparent;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Space Mono', monospace;
    border: 1px solid #333333;
    color: #cccccc;
    transition: 0.2s;
}

.app:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}


#app-content {
    background: #000000;
    border-radius: 8px;
    padding: 24px;
    min-height: 180px;
    border: 1px solid #1a1a1a;
}

#app-content p {
    color: #444444;
}


#window-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.window {
    position: fixed;
    min-width: 340px;
    min-height: 180px;
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    pointer-events: all;
    box-shadow: 0 20px 60px rgba(0,0,0,0.95);
    display: none;
    z-index: 1000;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #111111;
    border-bottom: 1px solid #222222;
    border-radius: 8px 8px 0 0;
    cursor: grab;
    user-select: none;
}

.window-header:active {
    cursor: grabbing;
}

.window-title {
    color: #ffffff;
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
}

.window-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}

.window-close:hover {
    color: #ffffff;
}

.window-body {
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.9rem;
    max-height: 420px;
    overflow-y: auto;
}

.window-body textarea,
.window-body input {
    font-family: 'Space Mono', monospace;
    background: #000000;
    color: #ffffff;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.window-body textarea:focus,
.window-body input:focus {
    border-color: #ffffff;
}

.window-body button {
    font-family: 'Space Mono', monospace;
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.8rem;
    margin-top: 8px;
}

.window-body button:hover {
    background: #ffffff;
    color: #000000;
}

.window-body .calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.window-body .calc-grid button {
    padding: 12px;
    text-align: center;
    margin: 0;
}

.window-body .timer-display {
    font-size: 2.8rem;
    font-family: 'Space Mono', monospace;
    color: #ffffff;
    text-align: center;
    letter-spacing: 4px;
    padding: 10px 0;
}

.window-body .todo-item,
.window-body .note-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #111111;
    color: #aaaaaa;
}

.window-body .todo-item button,
.window-body .note-item button {
    background: none;
    border: none;
    color: #664444;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0;
    padding: 0 4px;
}

.window-body .todo-item button:hover,
.window-body .note-item button:hover {
    color: #ff4444;
}


#pong {
    background: #000000;
    border-radius: 6px;
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #222222;
}


@media (max-width: 600px) {
    #os {
        padding: 18px 14px;
    }

    #topbar {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }

    #search-container {
        flex-direction: column;
        gap: 8px;
    }

    #search-container button {
        width: 100%;
        padding: 12px;
    }

    #apps {
        justify-content: center;
    }

    .app {
        padding: 8px 14px;
        font-size: 0.7rem;
    }

    .window {
        min-width: 90%;
        left: 5% !important;
        top: 10% !important;
    }

    .window-body .timer-display {
        font-size: 2.2rem;
    }
}
