/* =====================================================
   JAINIL OS 3.0
   MAIN STYLESHEET
===================================================== */

:root {
    --accent: #6c63ff;
    --accent-light: #8b85ff;

    --bg: #080b16;
    --window: rgba(18, 22, 38, 0.88);
    --window-solid: #121626;

    --text: #ffffff;
    --muted: #9ba3b7;

    --border: rgba(255, 255, 255, 0.10);
    --glass: rgba(255, 255, 255, 0.07);

    --danger: #ff5c70;
    --success: #42d392;

    --radius: 14px;

    --taskbar-height: 64px;
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family:
        Inter,
        Segoe UI,
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--bg);

    user-select: none;
}


/* =====================================================
   BUTTONS / INPUTS
===================================================== */

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
    color: var(--text);
}

button:active {
    transform: scale(0.97);
}

input,
textarea {
    outline: none;
}


/* =====================================================
   BOOT SCREEN
===================================================== */

#boot-screen {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: flex;
    flex-direction: column;

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

    background:
        radial-gradient(
            circle at center,
            #202750 0%,
            #0b0e1b 45%,
            #03040a 100%
        );

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

#boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-logo {
    width: 95px;
    height: 95px;

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

    border-radius: 28px;

    font-size: 52px;
    font-weight: 900;

    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent-light)
    );

    box-shadow:
        0 0 50px rgba(108, 99, 255, 0.55);

    animation: bootLogo 1.8s infinite alternate;
}

@keyframes bootLogo {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

#boot-screen h1 {
    margin-top: 25px;

    font-size: 32px;
    letter-spacing: 5px;
}

#boot-status {
    margin-top: 10px;

    color: var(--muted);

    font-size: 14px;
}

.boot-progress {
    width: 240px;
    height: 5px;

    margin-top: 25px;

    overflow: hidden;

    border-radius: 20px;

    background: rgba(255,255,255,0.08);
}

#boot-progress-bar {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background: var(--accent);

    transition: width 0.2s ease;
}


/* =====================================================
   DESKTOP
===================================================== */

#desktop {
    position: fixed;
    inset: 0;

    opacity: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(108, 99, 255, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0, 200, 255, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #080b16,
            #11162a
        );

    transition: opacity 0.7s ease;
}

#desktop.visible {
    opacity: 1;
}


/* =====================================================
   WALLPAPERS
===================================================== */

#desktop.wallpaper-space {
    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(100, 80, 255, 0.35),
            transparent 25%
        ),
        radial-gradient(
            circle at 80% 65%,
            rgba(0, 180, 255, 0.25),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #02030b,
            #0b1030,
            #02040c
        );
}

#desktop.wallpaper-midnight {
    background:
        linear-gradient(
            135deg,
            #020617,
            #0f172a,
            #020617
        );
}

#desktop.wallpaper-aurora {
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(0, 255, 170, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 75% 40%,
            rgba(100, 80, 255, 0.3),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #05120f,
            #11122d
        );
}

#desktop.wallpaper-plain {
    background: #10131f;
}


/* =====================================================
   TOP BAR
===================================================== */

#topbar {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 42px;

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

    padding: 0 18px;

    background: rgba(5, 7, 15, 0.55);

    backdrop-filter: blur(20px);

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

    z-index: 100;
}

#topbar-left {
    font-weight: 700;
    font-size: 13px;

    letter-spacing: 0.5px;
}

#topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 12px;
}

#topbar-right button {
    width: 30px;
    height: 30px;

    border-radius: 9px;

    background: transparent;

    transition: 0.2s;
}

#topbar-right button:hover {
    background: var(--glass);
}

#network-status {
    color: var(--success);
}


/* =====================================================
   DESKTOP ICONS
===================================================== */

#desktop-icons {
    position: absolute;

    top: 70px;
    left: 24px;

    display: grid;

    grid-template-columns: repeat(2, 90px);

    gap: 18px;

    z-index: 5;
}

.desktop-icon {
    width: 82px;
    min-height: 82px;

    display: flex;
    flex-direction: column;

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

    gap: 7px;

    background: transparent;

    border-radius: 14px;

    transition: 0.2s;
}

.desktop-icon:hover {
    background: rgba(255,255,255,0.08);
}

.desktop-icon span {
    font-size: 31px;
}

.desktop-icon small {
    font-size: 11px;

    color: #e6e8f2;

    text-shadow:
        0 2px 4px #000;
}


/* =====================================================
   WINDOWS
===================================================== */

.window {
    position: absolute;

    width: 700px;
    height: 470px;

    min-width: 320px;
    min-height: 220px;

    top: 120px;
    left: 250px;

    display: none;
    flex-direction: column;

    overflow: hidden;

    background: var(--window);

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

    border-radius: var(--radius);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.45),
        0 5px 20px rgba(0,0,0,0.2);

    backdrop-filter: blur(25px);

    resize: both;
}

.window.active {
    display: flex;
}

.window.maximized {
    top: 42px !important;
    left: 0 !important;

    width: 100% !important;

    height: calc(
        100% - 106px
    ) !important;

    border-radius: 0;
}

.window.minimized {
    display: none;
}


/* =====================================================
   WINDOW HEADER
===================================================== */

.window-header {
    height: 46px;

    flex-shrink: 0;

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

    padding: 0 10px 0 16px;

    background: rgba(255,255,255,0.055);

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

    cursor: grab;

    font-size: 13px;
    font-weight: 600;
}

.window-header:active {
    cursor: grabbing;
}

.window-controls {
    display: flex;

    gap: 5px;
}

.window-controls button {
    width: 31px;
    height: 29px;

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

    border-radius: 8px;

    background: transparent;

    color: var(--muted);

    font-size: 17px;

    transition: 0.2s;
}

.window-controls button:hover {
    background: rgba(255,255,255,0.1);

    color: white;
}

.window-controls button:last-child:hover {
    background: var(--danger);
}


/* =====================================================
   WINDOW BODY
===================================================== */

.window-body {
    flex: 1;

    overflow: auto;

    padding: 18px;
}

.window-body::-webkit-scrollbar {
    width: 7px;
}

.window-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);

    border-radius: 20px;
}


/* =====================================================
   FILE MANAGER
===================================================== */

#file-toolbar {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 18px;
}

#file-toolbar button {
    padding: 8px 11px;

    border-radius: 9px;

    background: var(--glass);

    font-size: 12px;

    transition: 0.2s;
}

#file-toolbar button:hover {
    background: var(--accent);
}

#current-path {
    margin-left: auto;

    color: var(--muted);

    font-size: 12px;
}

#file-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(105px, 1fr));

    gap: 12px;
}

.file-item {
    min-height: 105px;

    padding: 12px;

    display: flex;
    flex-direction: column;

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

    gap: 8px;

    border: 1px solid transparent;

    border-radius: 12px;

    background: rgba(255,255,255,0.025);

    transition: 0.2s;

    cursor: pointer;
}

.file-item:hover {
    background: rgba(255,255,255,0.08);

    border-color: var(--border);
}

.file-item.selected {
    background: rgba(108,99,255,0.2);

    border-color: var(--accent);
}

.file-icon {
    font-size: 35px;
}

.file-name {
    width: 100%;

    text-align: center;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;
}

.file-type {
    font-size: 10px;

    color: var(--muted);
}


/* =====================================================
   EDITOR
===================================================== */

.editor-body {
    display: flex;
    flex-direction: column;

    padding: 0;
}

.editor-toolbar {
    display: flex;

    gap: 8px;

    padding: 10px;

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

#editor-name {
    flex: 1;

    min-width: 0;

    padding: 9px 11px;

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

    border-radius: 8px;

    background: rgba(0,0,0,0.2);

    color: white;
}

.editor-toolbar button {
    padding: 9px 15px;

    border-radius: 8px;

    background: var(--accent);

    font-size: 12px;
}

#editor-area {
    flex: 1;

    width: 100%;

    padding: 18px;

    border: none;

    resize: none;

    background: transparent;

    color: #f4f5ff;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   NOTES
===================================================== */

#notes-area {
    width: 100%;
    height: 100%;

    min-height: 300px;

    padding: 18px;

    resize: none;

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

    border-radius: 12px;

    background: rgba(0,0,0,0.15);

    color: white;

    font-size: 14px;

    line-height: 1.7;
}

.editor-status {
    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;
}


/* =====================================================
   TERMINAL
===================================================== */

.terminal-body {
    display: flex;

    flex-direction: column;

    padding: 16px;

    background: rgba(0,0,0,0.35);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 13px;
}

#terminal-output {
    flex: 1;

    overflow-y: auto;

    white-space: pre-wrap;

    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 4px;
}

.terminal-command {
    color: var(--accent-light);
}

.terminal-error {
    color: #ff6b81;
}

.terminal-success {
    color: #55e69b;
}

.terminal-input-row {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 10px;
}

.terminal-input-row span {
    color: #65e6a3;

    white-space: nowrap;
}

#terminal-input {
    flex: 1;

    min-width: 0;

    border: none;

    background: transparent;

    color: white;

    font-family: inherit;

    font-size: 13px;
}


/* =====================================================
   SETTINGS
===================================================== */

.settings-body {
    max-width: 800px;
}

.settings-body h2 {
    margin-bottom: 20px;
}

.settings-group {
    margin-bottom: 25px;

    padding: 15px;

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

    border-radius: 13px;

    background: rgba(255,255,255,0.025);
}

.settings-group h3 {
    margin-bottom: 12px;

    font-size: 13px;
}

.settings-group button {
    margin: 4px;

    padding: 9px 13px;

    border-radius: 9px;

    background: var(--glass);

    font-size: 12px;
}

.settings-group button:hover {
    background: var(--accent);
}

.toggle-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 8px;

    color: var(--muted);

    font-size: 12px;
}

.settings-about {
    padding: 15px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(108,99,255,0.16),
            rgba(108,99,255,0.04)
        );
}

.settings-about p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;
}


/* =====================================================
   SYSTEM INFO
===================================================== */

.system-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 13px;

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

.system-row span:first-child {
    color: var(--muted);
}

.system-row span:last-child {
    text-align: right;

    word-break: break-word;
}


/* =====================================================
   RECYCLE BIN
===================================================== */

.trash-toolbar {
    margin-bottom: 15px;
}

.trash-toolbar button {
    padding: 9px 13px;

    border-radius: 9px;

    background: var(--danger);

    font-size: 12px;
}

.trash-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    margin-bottom: 8px;

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

    border-radius: 10px;

    background: rgba(255,255,255,0.03);
}

.trash-info {
    flex: 1;
}

.trash-info strong {
    display: block;

    font-size: 13px;
}

.trash-info small {
    color: var(--muted);
}

.trash-actions {
    display: flex;

    gap: 5px;
}

.trash-actions button {
    padding: 7px 9px;

    border-radius: 7px;

    background: var(--glass);

    font-size: 11px;
}


/* =====================================================
   TASKBAR
===================================================== */

#taskbar {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 12px;

    height: var(--taskbar-height);

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px;

    background: rgba(7, 9, 18, 0.72);

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

    border-radius: 18px;

    backdrop-filter: blur(25px);

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

    z-index: 5000;
}

#start-button {
    width: 47px;
    height: 47px;

    flex-shrink: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-light)
        );

    font-size: 20px;
    font-weight: 900;

    box-shadow:
        0 5px 20px rgba(108,99,255,0.35);
}

#search-button,
#task-notification {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    border-radius: 11px;

    background: var(--glass);

    font-size: 16px;
}

#search-button:hover,
#task-notification:hover {
    background: rgba(255,255,255,0.12);
}

#taskbar-apps {
    display: flex;

    gap: 6px;

    overflow-x: auto;
}

.taskbar-app {
    min-width: 43px;
    height: 43px;

    padding: 0 12px;

    border-radius: 10px;

    background: var(--glass);

    font-size: 16px;
}

.taskbar-app.active {
    background: var(--accent);
}

.taskbar-spacer {
    flex: 1;
}


/* =====================================================
   START MENU
===================================================== */

#start-menu {
    position: absolute;

    left: 12px;
    bottom: 86px;

    width: 350px;

    padding: 18px;

    display: none;

    background: rgba(12,15,27,0.94);

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

    border-radius: 18px;

    backdrop-filter: blur(25px);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.5);

    z-index: 6000;
}

#start-menu.open {
    display: block;

    animation: panelIn 0.18s ease;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.start-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
}

.start-avatar {
    width: 42px;
    height: 42px;

    display: flex;

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

    border-radius: 12px;

    background: var(--accent);

    font-weight: 800;
}

.start-header small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}

.start-search input {
    width: 100%;

    padding: 11px 13px;

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

    border-radius: 10px;

    background: rgba(0,0,0,0.25);

    color: white;
}

.start-apps {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 7px;

    margin-top: 15px;
}

.start-apps button {
    min-height: 75px;

    display: flex;
    flex-direction: column;

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

    gap: 7px;

    border-radius: 11px;

    background: rgba(255,255,255,0.035);

    font-size: 23px;
}

.start-apps button:hover {
    background: var(--glass);
}

.start-apps span {
    font-size: 10px;
}

.start-footer {
    margin-top: 15px;

    padding-top: 12px;

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

.start-footer button {
    padding: 9px 12px;

    border-radius: 9px;

    background: var(--glass);

    font-size: 12px;
}


/* =====================================================
   SEARCH
===================================================== */

#search-panel {
    position: absolute;

    left: 50%;

    top: 70px;

    width: min(600px, calc(100% - 30px));

    transform: translateX(-50%);

    display: none;

    padding: 14px;

    background: rgba(10,13,24,0.96);

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

    border-radius: 16px;

    backdrop-filter: blur(25px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45);

    z-index: 7000;
}

#search-panel.open {
    display: block;
}

#search-input {
    width: 100%;

    padding: 13px;

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

    border-radius: 10px;

    background: rgba(255,255,255,0.05);

    color: white;

    font-size: 14px;
}

#search-results {
    max-height: 350px;

    overflow-y: auto;

    margin-top: 10px;
}

.search-result {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px;

    border-radius: 10px;

    background: transparent;

    text-align: left;
}

.search-result:hover {
    background: var(--glass);
}

.search-result-icon {
    font-size: 23px;
}

.search-result-info strong {
    display: block;

    font-size: 12px;
}

.search-result-info small {
    color: var(--muted);

    font-size: 10px;
}


/* =====================================================
   PANELS
===================================================== */

#notification-center,
#control-center,
#profile-panel {
    position: absolute;

    right: 15px;
    top: 54px;

    width: 320px;

    display: none;

    padding: 15px;

    background: rgba(10,13,24,0.95);

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

    border-radius: 16px;

    backdrop-filter: blur(25px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45);

    z-index: 8000;
}

#notification-center.open,
#control-center.open,
#profile-panel.open {
    display: block;

    animation: panelIn 0.18s ease;
}

.panel-title {
    display: flex;

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

    margin-bottom: 12px;
}

.panel-title button {
    padding: 6px 9px;

    border-radius: 7px;

    background: var(--glass);

    font-size: 10px;
}

.notification-item {
    padding: 11px;

    margin-bottom: 7px;

    border-radius: 10px;

    background: rgba(255,255,255,0.04);
}

.notification-item strong {
    display: block;

    font-size: 12px;
}

.notification-item p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;
}

.quick-grid button {
    min-height: 70px;

    border-radius: 11px;

    background: var(--glass);

    font-size: 12px;
}

.quick-grid button:hover {
    background: var(--accent);
}


/* =====================================================
   PROFILE
===================================================== */

.profile-panel {
    text-align: center;
}

.profile-avatar {
    width: 65px;
    height: 65px;

    margin: 5px auto 12px;

    display: flex;

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

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-light)
        );

    font-size: 30px;
    font-weight: 900;
}

#profile-panel p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}

#profile-panel hr {
    border: none;

    border-top: 1px solid var(--border);

    margin: 15px 0;
}

#profile-panel button {
    width: 100%;

    padding: 10px;

    margin-top: 6px;

    border-radius: 9px;

    background: var(--glass);

    font-size: 12px;
}


/* =====================================================
   LOCK SCREEN
===================================================== */

#lock-screen {
    position: fixed;

    inset: 0;

    z-index: 20000;

    display: none;

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

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(60,65,130,0.6),
            rgba(2,4,10,0.98)
        );

    backdrop-filter: blur(30px);
}

#lock-screen.active {
    display: flex;
}

.lock-content {
    display: flex;

    flex-direction: column;

    align-items: center;
}

.lock-logo {
    width: 80px;
    height: 80px;

    display: flex;

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

    border-radius: 25px;

    background: var(--accent);

    font-size: 38px;
    font-weight: 900;

    box-shadow:
        0 0 50px rgba(108,99,255,0.4);
}

#lock-time {
    margin-top: 25px;

    font-size: 62px;

    font-weight: 300;
}

#lock-date {
    margin-top: 5px;

    color: var(--muted);

    font-size: 13px;
}

.lock-content p {
    margin-top: 25px;

    color: var(--muted);

    letter-spacing: 3px;

    font-size: 11px;
}

#unlock-button {
    margin-top: 20px;

    padding: 11px 22px;

    border-radius: 10px;

    background: var(--accent);

    font-size: 12px;
}


/* =====================================================
   TOASTS
===================================================== */

.toast-container {
    position: fixed;

    right: 20px;
    bottom: 90px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    z-index: 15000;
}

.toast {
    width: 270px;

    padding: 13px;

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

    border-radius: 12px;

    background: rgba(15,18,32,0.94);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.3);

    animation:
        toastIn 0.25s ease;
}

.toast strong {
    display: block;

    font-size: 12px;
}

.toast p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* =====================================================
   CONTEXT MENU
===================================================== */

#context-menu {
    position: fixed;

    min-width: 160px;

    display: none;

    padding: 6px;

    background: rgba(12,15,26,0.97);

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

    border-radius: 11px;

    box-shadow:
        0 15px 50px rgba(0,0,0,0.45);

    z-index: 12000;
}

#context-menu.open {
    display: block;
}

#context-menu button {
    width: 100%;

    padding: 9px 11px;

    border-radius: 7px;

    background: transparent;

    text-align: left;

    font-size: 11px;
}

#context-menu button:hover {
    background: var(--glass);
}


/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {
    padding: 50px 20px;

    text-align: center;

    color: var(--muted);
}

.empty-state div {
    margin-bottom: 10px;

    font-size: 38px;
}

.empty-state p {
    font-size: 12px;
}


/* =====================================================
   LIGHT THEME
===================================================== */

body.light {
    --bg: #e9edf7;

    --window: rgba(255,255,255,0.88);
    --window-solid: #ffffff;

    --text: #111827;
    --muted: #687083;

    --border: rgba(0,0,0,0.10);
    --glass: rgba(0,0,0,0.055);
}

body.light #desktop {
    background:
        linear-gradient(
            135deg,
            #dfe8ff,
            #f5f7ff
        );
}

body.light #topbar,
body.light #taskbar {
    background: rgba(255,255,255,0.72);
}

body.light .window,
body.light #start-menu,
body.light #search-panel,
body.light #notification-center,
body.light #control-center,
body.light #profile-panel {
    background: rgba(255,255,255,0.90);
}

body.light input,
body.light textarea,
body.light #editor-name {
    color: #111827;

    background: rgba(0,0,0,0.04);
}

body.light #editor-area {
    color: #111827;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 800px) {

    .window {
        top: 55px;
        left: 10px;

        width: calc(100% - 20px);
        height: calc(100% - 130px);

        resize: none;
    }

    #desktop-icons {
        grid-template-columns:
            repeat(3, 75px);

        gap: 8px;

        top: 65px;
        left: 10px;
    }

    .desktop-icon {
        width: 70px;
    }

    .desktop-icon span {
        font-size: 26px;
    }

    #topbar-left {
        display: none;
    }

    #topbar-right {
        width: 100%;

        justify-content: flex-end;
    }

    #taskbar {
        left: 7px;
        right: 7px;
        bottom: 7px;

        height: 58px;
    }

    #start-menu {
        left: 7px;
        right: 7px;

        width: auto;
    }

    #notification-center,
    #control-center,
    #profile-panel {
        left: 10px;
        right: 10px;

        width: auto;
    }

    #search-panel {
        top: 55px;
    }

    #lock-time {
        font-size: 45px;
    }
}


/* =====================================================
   SMALL SCREENS
===================================================== */

@media (max-width: 500px) {

    #desktop-icons {
        grid-template-columns:
            repeat(3, 65px);
    }

    .desktop-icon {
        width: 60px;
    }

    .desktop-icon small {
        font-size: 9px;
    }

    #network-status {
        display: none;
    }

    #current-path {
        width: 100%;
        margin-left: 0;
    }

    .start-apps {
        grid-template-columns:
            repeat(3, 1fr);
    }
}