:root {
    --window-bg: rgba(26, 26, 26, 0.8);
    --dock-bg: rgba(0, 0, 0, 0.9);
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.5);
}

body, .windows, .window-title, label {
    color: var(--text-color);
    transition: color 0.3s ease, background 0.3s ease;
}

.setting-desc, h1, p, span {
    color: var(--text-secondary);
}

.close-btn {
    border: 1px solid var(--text-color); 
}

body {
    background-image: url('wapp/wapp.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0F0E13;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    cursor: default;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    user-select: none;
}

#boot-logs {
    font-size: 20px;
    color: #ffffff; 
}

#boot-logs::after {
    content: '';
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.vizet {
    position: absolute;
    top: 0;
    right: -42%;
    width: 42%;
    height: 100vh;
    background-color: var(--dock-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: right 0.5s ease-in-out;
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vizet.is-visible {
    right: 0;
}

.vitzet {
    width: 100%;
    min-height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(52, 52, 52, 0.13);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.weather-info h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 200;
    font-size: 24px;
}

.weather-info span {
    opacity: 0.7;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.location {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    color: #ffffff;
    display: inline-block;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-playerr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

#m-titlee {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controlss {
    width: 100%;
}

#m-playerr {
    width: 100%;
    height: 30px;
    filter: invert(100%) opacity(0.8);
    outline: none;
}
.sm {
    width: 100%; 
    height: 650px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(52, 52, 52, 0.13);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paic {
    position: absolute;
    display: none;
    width: 200px;
    height: auto;
    background-color: var(--dock-bg);
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffffff1a;
    padding: 10px 0;
    z-index: 10000;
    box-shadow: 0 10px 30px #000000;
}
  
.paic a {
    display: block;
    margin: 5px 10px;
    padding: 10px;
    background-color: var(--dock-bg);
    border: 1px solid #ffffff33;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    transition: 0.2s;
    border-radius: 4px;
}
  
.paic a:hover {
    background: #ffffff1a;
    border-color: #ffffff;
}

.windows {
    display: none;
    position: absolute;
    width: 80%;
    height: 600px;
    background: var(--window-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 10px;
    flex-direction: column;
    overflow: hidden; 
    resize: both;
    opacity: 0;
    left: 0;
}

.windows[style*="display: flex"] {
    opacity: 1;
}

.windows.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 70px) !important;
    border-radius: 0 !important;
    z-index: 1000;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00000009;
    color: var(--text-color);
    user-select: none;
    padding: 2px 20px;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
}

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

.window-header h1 {
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.window-header a {
    text-decoration: none;
    color: var(--text-color);
    border: 0px solid #00000000;
}
iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

textarea {
    width: 100%;
    height: 100%;
    max-width: 1700px;
    min-height: 677px;
    user-select: none;
}

#terminalWindow textarea, #CodeWindow textarea {
    background: #00000015;
    color: #f0f0f0;            
    font-size: 13px;
    padding: 15px;
    border: none;
    resize: none;
    box-sizing: border-box;
    line-height: 1.5;
    user-select: none;
}

#terminalWindow textarea::placeholder, #CodeWindow textarea::placeholder {
    color: #f0f0f0;
}

.dock {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    display: flex;
    gap: 8px;
    padding: 10px;
    align-items: center;
    z-index: 1000;
    color: #fff;
}

.one, .ty, .fni, .clock {
    background: var(--dock-bg) !important;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    gap: 2px;
    width: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.one img, .ty img, .fni img, .clock img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.one img:hover, .ty img:hover, .fni img:hover, .clock img:hover {
    opacity: 0.8;
    width: 53px;
    height: 53px;
}
.clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: none;
}

.clock h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.clock span {
    font-size: 14px;
    margin-top: -5px;
}

#menuWindow {
    display: none;
    opacity: 0;
    position: absolute;
    bottom: 89px; 
    left: 50%;
    transform: translateX(-50%); 
    width: 600px;
    height: 290px;
    background-color: var(--dock-bg) !important;
    backdrop-filter: blur(5px); 
    border-radius: 10px;
    z-index: 1000; 
    padding: 0 10px;
    border: 1px solid #cccccc37;
    transition: opacity 0.3s ease;
}

#menuWindow[style*="display: block"] {
    opacity: 1;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 49px;
    gap: 8px;
    padding: 15px;
    cursor: pointer;
    text-decoration: none; 
} 

.menu-item img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    pointer-events: none;
}
.menu-item img:hover {
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

.menu-item span {
    color: #fff;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.menu-item:hover span {
    opacity: 0.8;
}
.settings-section {
    padding: 32px;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-left: 8px;
    font-weight: 600;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 16px 20px;
    border-radius: var(--radius-main);
    margin-bottom: 12px;
    transition: background 0.3s ease;
}

.setting-info label {
    display: block;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.setting-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.os-color-input {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50px;
    cursor: pointer;
    background: none;
}

.os-range-input {
    accent-color: var(--accent-color, #ffffff);
    cursor: pointer;
}

.kasto {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kasto a {
    padding: 3px 70px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.kasto a:hover {
    background: #96969614;
}

.kasto .active-theme a {
    background-color: var(--dock-bg);
    color: white;
    font-weight: 500;
}


.code-editor-container {
    display: flex;
    background: #1e1e1e; 
    height: calc(100% - 30px);
}

.line-numbers {
    width: 40px;
    background: #1e1e1e;
    color: #858585;
    text-align: right;
    padding: 10px 5px;
    border-right: 1px solid #333;
    user-select: none;
    font-size: 14px;
    line-height: 20px;
}

#codeEditor {
    flex-grow: 1;
    background: transparent;
    color: #d4d4d4;
    border: none;
    padding: 10px;
    font-size: 14px;
    line-height: 20px;
    outline: none;
    resize: none;
    white-space: pre;
    overflow-x: auto;
}

.tabs-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    background: #333;
    padding: 10px 10px 0 10px;
    gap: 4px;
}

.tab {
    flex: 0 0 auto;
    width: 130px;
    background: #1a1a1a;
    color: #888;
    padding: 6px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 1px solid #444;
    border-bottom: none;
}

.tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.tab button {
    background: none;
    border: none;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
}

.add-tab {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 0 10px 5px 10px;
    cursor: pointer;
}

.browser-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    gap: 10px;
}

#browserUrl {
    flex: 1;
    border-radius: 8px;
    background: #f0f0f0;
    color: #000;
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    outline: none;
}

.browser-content {
    flex: 1 1 auto;
    width: 100%;
    background: #fff;
    position: relative;
    overflow: hidden;
}

#browserFrame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.spotify-app {
    display: flex;
    background-color: var(--dock-bg) !important;
    height: 100vh;
    color: #ffffff;
    letter-spacing: -0.02em;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    padding: 24px 16px;
    border-right: 1px solid #ffffff1a;
    display: flex;
    flex-direction: column;
}

.playlist-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff80;
    margin-bottom: 20px;
    padding-left: 8px;
}

#playlist-container {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffffff33 #000000;
}

#playlist-container div {
    font-size: 13px;
    color: #ffffffb3;
    padding: 10px 8px;
    cursor: pointer;
    transition: 0.2s;
}

#playlist-container div:hover {
    color: #ffffff;
    background: #ffffff1a;
}

.main-view {
    flex: 1;
    background-color: var(--dock-bg) !important;
    backdrop-filter: blur(5px); 
    padding: 40px;
    overflow-y: auto;
    text-align: center;

}

.upload-btn {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #ffffff1a;
    padding: 10px 20px;
    width: 80%;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-transform: lowercase;
}

.upload-btn:hover {
    background: #ffffff33;
}

#m-upload {
    display: none;
}

.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--dock-bg) !important;
    backdrop-filter: blur(5px);
    border-top: 1px solid #ffffff1a;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 9999;
}

.track-info {
    width: 200px;
    overflow: hidden;
}

#m-title {
    font-size: 10px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#m-artist {
    font-size: 12px;
    color: #ffffff80;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-controls {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#m-player {
    width: 100%;
    max-width: 400px;
    height: 35px;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5);
    cursor: pointer;
}

#playlist-container button, #m-shuffle {
    background: #000;
    border: 1px solid #808080;
    color: #fff;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.track-item.active {
    border-left: 3px solid var(--accent-color, #ffffff);
    background: rgba(255, 255, 255, 0.1);
}

.track-name {
    font-weight: bold;
    font-size: 14px;
}

.track-meta {
    font-size: 11px;
    opacity: 0.6;
}

.track-controls button {
    background: none;
    border: none;
    color: var(--text-color);
    margin-left: 5px;
    cursor: pointer;
    font-size: 16px;
}

.app {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 15px;
    gap: 15px;
    transition: all 0.2s ease;
    height: 50px; 
}

.app:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.app img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.app span {
    flex: 1; 
    font-size: 14px;
    color: #ffffff;
    text-transform: capitalize;
    font-weight: 900;
}
.app p {
    width: 90%;
}

.btn-group {
    display: flex;
    flex-direction: row; 
    gap: 8px;
    width: auto;
    margin-top: 0;
    right: 20px;
    position: absolute;
}

.btn-group a {
    text-decoration: none;
    padding: 4px 12px;
    font-size: 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-group a:hover {
    background: #0078D7;
    border-color: #00a2ff;
}

.app.installed .install-btn,
.app:not(.installed) .open-btn,
.app:not(.installed) .delete-btn {
    display: none;
}

.delete-btn {
    background: rgba(255, 68, 68, 0.1) !important;
    border-color: rgba(255, 68, 68, 0.2) !important;
}

.delete-btn:hover {
    background: #ff4444 !important;
    border-color: #ff6666 !important;
}

.window-content::-webkit-scrollbar {
    width: 4px;
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.calc-container {
    padding: 20px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    height: 100%;
}

#calc-display {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    text-align: right;
    margin-bottom: 20px;
    font-weight: 200;
    outline: none;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.calc-grid button {
    height: 50px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.calc-grid button:hover { background: rgba(255, 255, 255, 0.15); }
.calc-grid .op { background: rgba(255, 149, 0, 0.8); }
.calc-grid .op:hover { background: rgba(255, 149, 0, 1); }
.calc-grid .func { background: rgba(255, 255, 255, 0.2); }
.span-two { grid-column: span 2; }

.vm-workspace {
    display: flex; 
    flex: 1;
    height: 100%;
    min-height: 674px;
    background-color: var(--dock-bg) !important;
    backdrop-filter: blur(5px);
}

.vm-sidebar {
    width: 120px;
    border-right: 1px solid #333;
    padding-top: 10px;
}

.sidebar-section {
    font-size: 10px;
    padding: 5px 15px;
    color: #666;
    font-weight: bold;
}

.vm-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    color: #ccc;
    font-size: 13px;
    transition: 0.2s;
}

.vm-item:hover { background: #2a2d2e; }
.vm-item.active { background: #094771; color: white; }

.os-icon {
    width: 16px;
    height: 16px;
    background: #444;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
}

.vm-screen {
    flex: 1; 
    background: #000;
    position: relative;
}

#vmFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: none; 
}

#vm-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.bios-text {
    color: #00ff00;
    font-family: monospace;
    font-size: 14px;
}
  
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    -webkit-touch-callout: none;
}

img, a {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
