* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;

    font-family: Arial, sans-serif;
    color: #dff9ff;
}

body {
    background:
        radial-gradient(circle at 15% 25%, rgba(0, 190, 230, 0.2), transparent 28%),
        radial-gradient(circle at 85% 75%, rgba(0, 110, 170, 0.18), transparent 32%),
        linear-gradient(135deg, #061217, #0b252e);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: background 0.3s;
}


/* THEMES */

body.theme-bg1 {
    background-image: url("bg1.png");
    background-size: cover;
    background-position: center;
}

body.theme-bg2 {
    background-image: url("bg2.png");
    background-size: cover;
    background-position: center;
}

body.theme-mono {
    background:
        radial-gradient(circle at 15% 25%, rgba(0, 190, 230, 0.2), transparent 28%),
        radial-gradient(circle at 85% 75%, rgba(0, 110, 170, 0.18), transparent 32%),
        linear-gradient(135deg, #061217, #0b252e);
}


/* TOP BAR */

.topbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 50px;

    z-index: 9000;

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

    padding: 0 20px;

    background: #07171d;
    border-bottom: 2px solid #164957;
}

.brand {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
}

.brand span {
    color: #39d8ff;
}

#clock {
    padding: 6px 10px;

    font-family: Consolas, monospace;
    font-size: 13px;

    color: #8eeaff;

    background: #0c252d;
    border: 1px solid #1b5261;
    border-radius: 4px;
}


/* DESKTOP */

#desktop {
    position: fixed;

    top: 50px;
    bottom: 54px;
    left: 0;
    right: 0;
}


/* APP ICONS */

.app-icon {
    width: 82px;
    margin: 18px;

    text-align: center;

    cursor: pointer;
    user-select: none;
}

.app-icon .icon {
    width: 56px;
    height: 56px;

    margin: 0 auto 7px;

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

    background: #09232c;
    border: 1px solid #1c5968;
    border-radius: 10px;

    font-size: 26px;

    transition: 0.15s;
}

.app-icon:hover .icon {
    background: #103744;
    border-color: #46dfff;
    transform: translateY(-2px);
}

.app-icon span {
    font-size: 13px;
    text-shadow: 0 2px 4px #000;
}


/* WINDOWS */

.window {
    position: absolute;

    top: 90px;
    left: 170px;

    width: 520px;
    max-width: calc(100vw - 30px);
    min-height: 250px;

    display: none;

    background: #07171d;

    border: 1px solid #246477;
    border-radius: 6px;

    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);

    overflow: hidden;
}

.window.active {
    display: block;
}


/* WINDOW HEADER */

.windowheader {
    height: 42px;

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

    padding-left: 14px;

    background: #0b252e;
    border-bottom: 1px solid #1d5361;

    cursor: grab;
    user-select: none;
}

.windowheader:active {
    cursor: grabbing;
}

.headertext {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.window-controls {
    display: flex;
    height: 100%;
}

.window-controls button {
    width: 38px;
    height: 100%;

    border: 0;
    border-left: 1px solid #173d47;

    background: transparent;
    color: #dffaff;

    font-size: 15px;
    cursor: pointer;
}

.window-controls button:hover {
    background: #173944;
}

.window-controls button:last-child:hover {
    background: #8b3030;
}


/* WINDOW CONTENT */

.windowcontent {
    padding: 20px;
    line-height: 1.5;
}

.windowcontent h2 {
    margin-top: 0;
    color: #70e3ff;
}

.windowcontent h3 {
    color: #9aeaff;
}

.windowcontent hr {
    border: 0;
    border-top: 1px solid #1d3a42;
    margin: 18px 0;
}

.windowcontent li {
    margin: 6px 0;
}

.project {
    padding: 12px;
    margin: 10px 0;

    background: #0b2027;

    border-left: 3px solid #39d8ff;
    border-radius: 4px;
}


/* TERMINAL */

.terminal-window {
    background: #02090b;
}

.terminal-content {
    height: 300px;

    padding: 15px;

    overflow-y: auto;

    font-family: Consolas, monospace;
    font-size: 14px;

    color: #8ff1ff;
}

.terminal-input-line {
    display: flex;
    gap: 8px;

    padding: 10px 15px;

    border-top: 1px solid #17343c;

    font-family: Consolas, monospace;
    color: #62e8ff;
}

.terminal-input-line input {
    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;
    color: white;

    font-family: Consolas, monospace;
}


/* NOTES */

#notesArea {
    width: 100%;
    height: 220px;

    resize: none;

    padding: 12px;

    background: #081a20;
    color: white;

    border: 1px solid #205363;
    border-radius: 5px;

    outline: none;

    font-family: Arial, sans-serif;
}

#notesArea:focus {
    border-color: #3edcff;
}

.save-button {
    margin-top: 10px;

    padding: 9px 15px;

    border: 0;
    border-radius: 5px;

    background: #1687a7;
    color: white;

    cursor: pointer;
}

.save-button:hover {
    background: #1ca9d0;
}

#saveStatus {
    margin-left: 10px;

    font-size: 12px;
    color: #7de8ff;
}


/* SETTINGS */

.theme-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 20px;
}

.theme-buttons button {
    padding: 10px 17px;

    background: #0d303a;
    color: white;

    border: 1px solid #286477;
    border-radius: 5px;

    cursor: pointer;
}

.theme-buttons button:hover {
    background: #155060;
}


/* TASKBAR */

.taskbar {
    position: fixed;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 54px;

    z-index: 9000;

    display: flex;
    align-items: center;

    gap: 10px;
    padding: 6px 10px;

    background: #061419;
    border-top: 2px solid #164957;
}

.start-button {
    height: 38px;

    padding: 0 16px;

    background: #0d3b49;
    color: white;

    border: 1px solid #286477;
    border-radius: 5px;

    font-weight: bold;

    cursor: pointer;
}

.start-button:hover {
    background: #14586a;
}

.taskbar-apps {
    display: flex;
    gap: 5px;
}

.taskbar-apps button {
    height: 36px;

    padding: 0 12px;

    background: #0b252c;
    color: #dffaff;

    border: 0;
    border-radius: 4px;

    cursor: pointer;
}

.taskbar-apps button:hover {
    background: #163a43;
}


/* MOBILE */

@media (max-width: 650px) {

    .window {
        left: 15px !important;
        top: 65px !important;

        width: calc(100vw - 30px);
    }

    .taskbar-apps {
        display: none;
    }

    .app-icon {
        margin: 12px;
    }
}