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

body {
    min-height: 100vh;
    overflow: hidden;
    color: white;
    font-family: Arial, sans-serif;

}

.welcome-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    
    justify-content: center;
    background: url("images/CobraOS.png") center / cover no-repeat;
}

button {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    background: #5865f2;
    color: white;
    cursor: pointer;
}
#start-button {
    position: absolute;
    left: 50%;
    top: 73%;
    transform: translate(-50%, -50%);

}

button:hover 
{
    background: #4752c4;
}

button:active {
    transform: translateY(0);
}


.desktop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url("images/desktop.png") center / cover no-repeat;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: rgba(10, 12, 25, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}
.os-name {
    position: absolute;
    left: 1%;
    font-size: 18px;
    font-weight: bold;
}
.clock {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}
.date {
    position: absolute;
    left: 45%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}
.system-status {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    font-size: 14px;
    color: white;
}

.dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(15, 18, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(15px);
    z-index: 100;
}
.dock-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.dock-icon:hover {
    transform: translateY(-12px) scale(1.6);
}   

.app-window {
    position: absolute;
    top: 15%;
    left: 50%;
    width: 70%;
    height: 65%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    background: rgba(15, 18, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 100;
}
.window-header {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    cursor: grab;
    user-select: none;
}
.window-controls {
    display: flex;
    gap: 4px;
}

.window-controls button {
    width: 32px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

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

#browser-close:hover {
    background: #e81123;
}
.browser-toolbar {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.browser-toolbar button {
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
}

#browser-url {
    flex: 1;
    border: none;
    outline: none;
    border-radius: 7px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.browser-content {
    flex: 1;
    overflow: hidden;
    background: white;
}

#browser-frame {
    width: 100%;
    height: 100%;

    border: none;
}

.files-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.files-sidebar {
    width: 180px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.files-location {
    padding: 10px;
    margin-bottom: 4px;
    border-radius: 7px;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.files-location:hover,
.files-location.active {
    background: rgba(255, 255, 255, 0.1);
}

.files-content {
    flex: 1;
    min-width: 0;
    background: rgba(20, 24, 38, 0.95);
    color: white;
}

.files-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 20px;
    padding: 25px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

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

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

.notes-window {
    width: 60%;
    height: 65%;
}

.notes-toolbar {
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(191, 181, 181, 0.7);
    font-size: 12px;
}

#notes-clear {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
}

#notes-clear:hover {
    background: rgba(255, 255, 255, 0.18);
}

#notes-editor {
    flex: 1;

    width: 100%;
    height: 100%;
    padding: 20px;
    resize: none;
    border: none;
    outline: none;
    background: rgba(15, 18, 30, 0.96);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

#notes-editor::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.music-window {
    width: 420px;
    height: 560px;
}


.music-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    color: white;
    background: rgba(15, 18, 30, 0.97);
}

.album-art {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 70px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);
}

.music-content h2 {
    margin: 5px 0;
    font-size: 18px;
    text-align: center;
}

.music-content p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

#music-progress {
    width: 100%;
    cursor: pointer;
}

.music-time {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.music-controls button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 17px;
    cursor: pointer;
}

.music-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

#music-play {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 20px;
}

.music-volume {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#music-volume {
    flex: 1;
}

.music-file {
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.music-file:hover {
    background: rgba(255, 255, 255, 0.18);
}

#music-file-input {
    display: none;
}
/*
   SETTINGS*/

.settings-window {
    width: 760px;
    height: 560px;
}

.settings-body {
    display: flex;
    flex: 1;
    min-height: 0;
    background: rgba(15, 18, 30, 0.97);
    color: white;
}


/* SIDEBAR */

.settings-sidebar {
    width: 190px;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-nav {
    padding: 11px 13px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.settings-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.settings-nav.active {
    background: var(--accent-color, #5865f2);
    color: white;
}


/* CONTENT */

.settings-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-section h2 {
    margin: 0 0 7px;
    font-size: 24px;
}

.settings-description {
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}


/* SETTING CARDS */

.setting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.setting-card strong {
    font-size: 14px;
}
.setting-card p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}


/* SELECT */

#theme-select {
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}


/* COLOR */

#accent-color {
    width: 45px;
    height: 35px;
    padding: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
}


/* TOGGLE */

.toggle {
    position: relative;
    width: 42px;
    height: 23px;
}

.toggle input {
    display: none;
}

.toggle span {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.2s;
}

.toggle span::before {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: white;
    transition: 0.2s;
}

.toggle input:checked + span {
    background: var(--accent-color, #5865f2);
}

.toggle input:checked + span::before {
    transform: translateX(19px);
}


/* ABOUT */

.about-card {
    padding: 35px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.about-logo {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: var(--accent-color, #5865f2);
    font-size: 35px;
    font-weight: bold;
}

.about-card h3 {
    margin: 5px 0;
    font-size: 20px;
}

.about-card p {
    margin: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}




.about-card .version {
    margin-top: 20px;
    font-size: 11px;
}

#logout-button {
    border: none;
    background: transparent;
    color: white;
    font-size: 16px;
    padding: 4px 6px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

#logout-button:hover {
    opacity: 1;
    transform: scale(1.1);
}
.volume-control {
    position: relative;
    display: flex;
    align-items: center;
}

#volume {
    border: none;
    background: transparent;
    color: white;
    font-size: 16px;
    padding: 4px 6px;
    cursor: pointer;
}

.volume-popup {
    position: absolute;
    top: 35px;
    right: 0;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-width: 160px;
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

#volume-slider {
    width: 110px;
    cursor: pointer;
}

#volume-value {
    min-width: 35px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}


body[data-theme="light"] {
    color: #1f2937;
}

body[data-theme="light"] .desktop {
    background: url("images/desktop.png") center / cover no-repeat;
}

body[data-theme="light"] .top-bar {
    background: rgba(255, 255, 255, 0.78);
    color: #111827;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .os-name,
body[data-theme="light"] .clock,
body[data-theme="light"] .date,
body[data-theme="light"] .system-status {
    color: #111827;
}

body[data-theme="light"] .dock {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .app-window {
    background: rgba(248, 249, 252, 0.97);
    color: #111827;
    border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .window-header {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
}

body[data-theme="light"] .window-controls button {
    color: #111827;
}

body[data-theme="light"] .browser-toolbar {
    background: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] #browser-url {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
}

body[data-theme="light"] .files-sidebar,
body[data-theme="light"] .settings-sidebar {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .files-content,
body[data-theme="light"] .settings-body,
body[data-theme="light"] #notes-editor,
body[data-theme="light"] .music-content {
    background: #f8f9fc;
    color: #111827;
}

body[data-theme="light"] .files-location,
body[data-theme="light"] .file-item,
body[data-theme="light"] .settings-nav {
    color: #374151;
}

body[data-theme="light"] .files-location:hover,
body[data-theme="light"] .files-location.active,
body[data-theme="light"] .file-item:hover,
body[data-theme="light"] .settings-nav:hover {
    background: rgba(0, 0, 0, 0.07);
}

body[data-theme="light"] .setting-card,
body[data-theme="light"] .about-card {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .setting-card p,
body[data-theme="light"] .settings-description,
body[data-theme="light"] .about-card p {
    color: rgba(0, 0, 0, 0.55);
}

body[data-theme="light"] #theme-select {
    background: rgba(0, 0, 0, 0.08);
    color: #111827;
}

body[data-theme="light"] .notes-toolbar {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

body[data-theme="light"] #notes-editor::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .volume-popup {
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    border-color: rgba(0, 0, 0, 0.12);
}

.files-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.files-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.files-breadcrumb button {
    padding: 6px 9px;
}

.files-actions {
    display: flex;
    gap: 8px;
}

.files-actions button,
.upload-file-button {
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.files-actions button:hover,
.upload-file-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.upload-file-button input {
    display: none;
}

.file-item {
    position: relative;
}

.file-item .file-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.file-item.folder .file-icon {
    cursor: pointer;
}

.file-item.file .file-icon {
    cursor: default;
}

.file-delete {
    position: absolute;
    top: 3px;
    right: 3px;
    display: none;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    font-size: 12px;
}

.file-item:hover .file-delete {
    display: block;
}