* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #080b12;
    color: white;
}

button,
input,
textarea {
    font-family: inherit;
}


/* ================= DESKTOP ================= */

#desktop {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    background-image: url("download (1).jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ================= TOP BAR ================= */

#topbar {
    height: 58px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    background: rgba(7, 10, 18, 0.88);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    position: absolute;
    top: 0;
    left: 0;

    z-index: 1000;
}

.brand {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 5px;
}

.top-info {
    display: flex;
    gap: 18px;

    font-size: 14px;
    color: #aeb8cc;
}


/* ================= DESKTOP AREA ================= */

#desktop-area {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.welcome-text {
    text-align: center;
    margin-top: 30px;
}

.welcome-text p {
    font-size: 11px;
    letter-spacing: 5px;
    color: #7e8ba4;
}

.welcome-text h1 {
    margin: 10px 0;

    font-size: 72px;
    letter-spacing: 12px;
}

.welcome-text span {
    color: #9ba7ba;
    font-size: 17px;
}


/* ================= DESKTOP ICONS ================= */

.desktop-icons {
    position: absolute;

    left: 25px;
    top: 95px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-icon {
    width: 75px;

    text-align: center;

    cursor: pointer;

    color: #dce2ed;

    font-size: 12px;
}

.icon-box {
    width: 48px;
    height: 48px;

    margin: auto;
    margin-bottom: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.09);

    border: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 21px;

    transition: 0.2s;
}

.app-icon:hover .icon-box {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
}

.app-icon.selected .icon-box {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}


/* ================= DOCK ================= */

#dock {
    position: absolute;

    bottom: 22px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    padding: 9px 12px;

    background: rgba(8, 11, 18, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 17px;

    backdrop-filter: blur(12px);

    z-index: 900;
}

#dock button {
    width: 43px;
    height: 43px;

    border: none;
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.08);

    color: white;

    cursor: pointer;

    font-size: 18px;

    transition: 0.2s;
}

#dock button:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
}


/* ================= WINDOWS ================= */

.window {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 650px;
    min-height: 350px;

    background: rgba(16, 20, 31, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 14px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);

    overflow: hidden;

    display: none;

    z-index: 10;
}

.small-window {
    width: 390px;
    min-height: auto;
}

.projects-window {
    width: 600px;
}


/* ================= WINDOW HEADER ================= */

.window-header {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 15px;

    background: rgba(255, 255, 255, 0.06);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    cursor: grab;

    user-select: none;
}

.window-header:active {
    cursor: grabbing;
}

.window-header span {
    font-size: 14px;
    font-weight: bold;
}

.window-header button {
    width: 27px;
    height: 27px;

    border: none;
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.08);

    color: #dce2ed;

    font-size: 18px;

    cursor: pointer;
}

.window-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ================= WELCOME ================= */

.window-content {
    padding: 25px;
}

.welcome-content h2 {
    margin-top: 0;
    font-size: 27px;
}

.welcome-content p {
    color: #aeb8ca;
    line-height: 1.6;
}

.info-card {
    margin-top: 25px;

    padding: 18px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);
}

.info-card strong {
    font-size: 15px;
}

.info-card p {
    margin-bottom: 0;
}

.small-text {
    font-size: 12px;
}


/* ================= NOTES ================= */

.notes-layout {
    display: flex;
    height: 390px;
}

.notes-sidebar {
    width: 180px;

    padding: 12px;

    border-right: 1px solid rgba(255, 255, 255, 0.1);

    overflow-y: auto;
}

.new-note {
    width: 100%;

    padding: 9px;

    border: none;
    border-radius: 8px;

    background: white;
    color: #111;

    cursor: pointer;

    font-weight: bold;
}

.note-item {
    padding: 11px 8px;

    margin-top: 8px;

    border-radius: 7px;

    cursor: pointer;

    color: #b8c1d1;

    font-size: 13px;
}

.note-item:hover,
.note-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.notes-main {
    flex: 1;

    padding: 18px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-main input,
.notes-main textarea {
    width: 100%;

    border: none;
    outline: none;

    color: white;

    background: rgba(255, 255, 255, 0.05);

    border-radius: 8px;

    padding: 11px;
}

.notes-main input {
    font-size: 18px;
    font-weight: bold;
}

.notes-main textarea {
    flex: 1;

    resize: none;

    line-height: 1.5;
}

.save-button {
    align-self: flex-end;

    border: none;
    border-radius: 8px;

    padding: 9px 17px;

    background: white;
    color: #111;

    cursor: pointer;

    font-weight: bold;
}


/* ================= CALCULATOR ================= */

.calculator {
    padding: 18px;
}

#calc-display {
    width: 100%;

    padding: 15px;

    margin-bottom: 12px;

    border: none;
    border-radius: 9px;

    background: #080b12;

    color: white;

    text-align: right;

    font-size: 25px;
}

.calc-buttons {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;
}

.calc-buttons button {
    height: 52px;

    border: none;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.08);

    color: white;

    font-size: 17px;

    cursor: pointer;
}

.calc-buttons button:hover {
    background: rgba(255, 255, 255, 0.17);
}

.calc-buttons .zero {
    grid-column: span 4;
}


/* ================= FOCUS ================= */

.focus-content {
    padding: 30px;

    text-align: center;
}

.focus-label {
    color: #8995aa;

    font-size: 11px;

    letter-spacing: 4px;
}

#timer {
    font-size: 65px;

    font-weight: bold;

    margin: 20px 0 25px;
}

.focus-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.focus-buttons button {
    padding: 9px 15px;

    border: none;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.1);

    color: white;

    cursor: pointer;
}

.focus-buttons button:hover {
    background: rgba(255, 255, 255, 0.18);
}


/* ================= PROJECTS ================= */

.projects-content {
    padding: 20px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.project-card {
    padding: 16px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.07);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-top h3 {
    margin: 0;

    font-size: 17px;
}

.project-top span {
    font-size: 9px;

    letter-spacing: 1px;

    color: #9da8bb;
}

.project-card p {
    color: #aeb8c9;

    line-height: 1.5;

    font-size: 13px;
}

.project-card small {
    color: #7f8ba0;
}


/* ================= NOTIFICATION ================= */

#notification {
    position: absolute;

    top: 75px;
    right: 20px;

    width: 230px;

    padding: 14px;

    border-radius: 10px;

    background: rgba(20, 25, 37, 0.95);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    display: none;

    z-index: 2000;
}

#notification strong {
    display: block;

    font-size: 13px;

    margin-bottom: 5px;
}

#notification-text {
    color: #aeb8c9;

    font-size: 12px;
}


/* ================= LIGHT MODE ================= */

body.light #desktop {
    background:
        radial-gradient(circle at 15% 20%, #dce8ff, transparent 35%),
        radial-gradient(circle at 85% 75%, #e8e2ff, transparent 35%),
        #eef1f7;

    color: #151922;
}

body.light #topbar {
    background: rgba(245, 247, 252, 0.9);

    border-color: rgba(0, 0, 0, 0.1);
}

body.light .brand {
    color: #151922;
}

body.light .top-info {
    color: #596274;
}

body.light .welcome-text span {
    color: #596274;
}

body.light .welcome-text p {
    color: #667085;
}

body.light .window {
    background: rgba(248, 249, 252, 0.97);

    color: #151922;
}

body.light .window-header {
    background: rgba(0, 0, 0, 0.04);

    border-color: rgba(0, 0, 0, 0.1);
}

body.light .window-header button,
body.light #dock button,
body.light .calc-buttons button,
body.light .focus-buttons button {
    color: #151922;

    background: rgba(0, 0, 0, 0.06);
}

body.light .welcome-content p,
body.light .project-card p {
    color: #596274;
}

body.light .info-card,
body.light .project-card {
    background: rgba(0, 0, 0, 0.04);
}

body.light .notes-sidebar {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .notes-main input,
body.light .notes-main textarea {
    color: #151922;

    background: rgba(0, 0, 0, 0.05);
}

body.light #calc-display {
    color: white;
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .welcome-text h1 {
        font-size: 48px;
    }

    .desktop-icons {
        left: 10px;
    }

    .window {
        width: 90%;
        max-height: 75vh;
    }

    .notes-layout {
        height: 330px;
    }

    #dock {
        bottom: 12px;
    }

}
