:root{
    /* KDE Breeze Dark Palette - Enhanced */
    --bg-color:#232629;
    --window-bg: rgba(49, 54, 59, 0.95);
    --window-header:#2a2e32;
    --text-main:#eff0f1;
    --text-muted:#bdc3c7;
    --accent:#3daee9;
    --accent-hover:#50bdf5;
    --border-color: rgba(255,255,255,0.10);
    --panel-bg: rgba(30, 33, 36, 0.85);
    --selection: rgba(61,174,233,0.4);
    --shadow-window: 0 15px 40px rgba(0,0,0,0.60);
    --shadow-panel: 0 -5px 15px rgba(0,0,0,0.30);
    --anim-fast: .15s;
    --anim-med: .30s;
}

*{ margin:0; padding:0; box-sizing:border-box; user-select:none; -webkit-tap-highlight-color:transparent; }

body{
    background: url('assets/wallpaper.jpg') no-repeat center center / cover;
    background-color: var(--bg-color);
    height:100vh; width:100vw;
    font-family: 'Noto Sans', system-ui, sans-serif;
    overflow:hidden;
    color:var(--text-main);
    transition: background-image .45s ease-in-out, opacity .25s ease-in-out;
}

/* Scrollbars */
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.20); border-radius:4px; }
::-webkit-scrollbar-thumb:hover{ background:var(--accent); }

/* BOOT SCREEN */
#boot-screen{
    position:fixed; inset:0; background:#000; z-index:10000;
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    font-family:'JetBrains Mono', ui-monospace, monospace;
    transition:opacity 1s ease;
}
.boot-logo-container{ margin-bottom:30px; text-align:center; }
.boot-icon{ font-size:5rem; color:var(--accent); margin-bottom:15px; }
.boot-logo-text{ font-size:1.5rem; font-weight:700; letter-spacing:2px; }
.boot-progress-bar{ width:300px; height:4px; background:#333; border-radius:2px; overflow:hidden; margin-bottom:20px; }
.progress-fill{ height:100%; background:var(--accent); width:0%; transition: width .2s linear; }
.boot-console{ font-size:.8rem; color:#888; height:100px; text-align:left; width:320px; opacity:.9; }
#enter-os-btn{ padding:10px 30px; background:var(--accent); border:none; color:#fff; font-weight:700; border-radius:6px; cursor:pointer; font-size:1rem; animation:pulse 2s infinite; }
@keyframes pulse{ 0% { box-shadow:0 0 0 0 rgba(61,174,233,.7); } 70%{ box-shadow:0 0 0 12px rgba(61,174,233,0); } 100%{ box-shadow:0 0 0 0 rgba(61,174,233,0); } }
.hidden{ display:none !important; }

/* DESKTOP */
#desktop{ padding:20px; display:flex; flex-direction:column; flex-wrap:wrap; align-content:flex-start; height: calc(100% - 46px); gap:10px; }
.icon{ width:96px; height:100px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; text-align:center; border:1px solid transparent; border-radius:6px; padding:6px; cursor:pointer; transition:.2s; color:#fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.icon:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.20); }
.icon:active, .icon.selected{ background:rgba(61,174,233,.30); border-color:var(--accent); }
.icon i{ font-size:48px; margin-bottom:8px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.icon span{ font-size:.85rem; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* CONTEXT MENU */
.context-menu{ position:absolute; background:#2a2e32; border:1px solid var(--border-color); box-shadow:0 5px 15px rgba(0,0,0,.5); border-radius:8px; padding:6px 0; min-width:220px; display:none; z-index:9999; }
.ctx-item{ padding:9px 15px; cursor:pointer; display:flex; align-items:center; gap:10px; font-size:.92rem; color:var(--text-main); }
.ctx-item:hover{ background:var(--accent); color:#fff; }
.ctx-item i{ width:20px; text-align:center; }
.ctx-separator{ height:1px; background:rgba(255,255,255,.10); margin:4px 0; }

/* WINDOWS */
.window{ position:absolute; background:var(--window-bg); border:1px solid var(--border-color); border-radius:10px; box-shadow:var(--shadow-window); display:flex; flex-direction:column; min-width:400px; min-height:300px; opacity:0; transform: scale(.95); transition: opacity .2s, transform .2s; pointer-events:none; z-index:100; backdrop-filter: blur(20px); overflow:hidden; }
.window.open{ opacity:1; transform:scale(1); pointer-events:all; }
.window.minimized{ opacity:0; transform: translateY(200px) scale(.5); pointer-events:none; transition:.4s cubic-bezier(.19,1,.22,1); }
.window.maximized{ width:100% !important; height: calc(100% - 46px) !important; top:0 !important; left:0 !important; border-radius:0; transform:none; border:none; }
.window.active{ border-color: rgba(61,174,233,.5); box-shadow:0 20px 50px rgba(0,0,0,.7); }

.window-header{ height:40px; background:var(--window-header); display:flex; align-items:center; justify-content:space-between; padding:0 10px; cursor:default; }
.win-icon{ color:var(--text-muted); margin-right:10px; width:28px; display:flex; justify-content:center; }
.win-title{ flex:1; text-align:center; font-weight:600; font-size:.9rem; }
.win-controls{ display:flex; gap:8px; }
.win-btn{ width:26px; height:26px; border-radius:999px; display:flex; align-items:center; justify-content:center; font-size:.75rem; cursor:pointer; color:var(--text-muted); transition:.2s; }
.win-btn:hover{ background:rgba(255,255,255,.10); color:#fff; }
.close-btn:hover{ background:#e74c3c; }

.window-content{ flex:1; overflow:auto; position:relative; }
.white-bg{ background:#eff0f1; color:#232629; }
.dark-bg{ background:var(--bg-color); color:var(--text-main); }
.flex-content{ display:flex; height:100%; }

/* TERMINAL */
.terminal-content{ background: rgba(0,0,0,.86); color:#fff; font-family: 'JetBrains Mono', ui-monospace, monospace; padding:10px; font-size:.9rem; }
.input-line{ display:flex; align-items:center; gap:8px; }
.prompt{ color: var(--accent); }
#cli-input{ background:transparent; border:none; color:inherit; width:100%; outline:none; font-family:inherit; font-size:inherit; caret-color:var(--accent); }

/* DOLPHIN */
.dolphin-sidebar{ width:190px; background: rgba(40,44,48,.60); padding:10px 0; border-right:1px solid var(--border-color); }
.dolphin-sidebar div{ padding:8px 15px; cursor:pointer; font-size:.9rem; display:flex; align-items:center; gap:10px; color:var(--text-main); }
.dolphin-sidebar div:hover{ background: rgba(255,255,255,.05); }
.places-header{ font-size:.75rem; text-transform:uppercase; color:var(--text-muted); margin:10px 15px 5px; pointer-events:none; }
.dolphin-main{ flex:1; display:flex; flex-direction:column; background: rgba(35,38,41,.80); }
.dolphin-toolbar{ height:44px; display:flex; align-items:center; padding:0 10px; gap:10px; border-bottom:1px solid var(--border-color); }
.nav-arrows button{ background:transparent; border:none; color:var(--text-main); padding:5px 8px; cursor:pointer; border-radius:6px; }
.nav-arrows button:hover{ background:rgba(255,255,255,.1); }
.path-breadcrumb{ flex:1; background:rgba(0,0,0,.2); padding:5px 10px; border-radius:6px; font-size:.85rem; display:flex; align-items:center; gap:6px; border:1px solid var(--border-color); overflow:hidden; }
.path-breadcrumb span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.view-modes i{ padding:6px; cursor:pointer; color:var(--text-muted); }
.view-modes i.active{ color:var(--accent); }
.file-area{ flex:1; padding:15px; display:grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); grid-auto-rows:110px; gap:10px; align-content:start; overflow-y:auto; }
.file-item{ border:1px solid transparent; border-radius:8px; padding:8px; text-align:center; }
.file-item:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }
.dolphin-statusbar{ height:24px; border-top:1px solid var(--border-color); display:flex; justify-content:space-between; align-items:center; padding:0 10px; font-size:.8rem; color:var(--text-muted); }

/* SETTINGS */
.settings-sidebar{ width:170px; background:#e0e0e0; border-right:1px solid #ccc; padding-top:10px; }
.settings-sidebar div{ padding:10px 18px; cursor:pointer; display:flex; gap:10px; color:#333; align-items:center; }
.settings-sidebar div.active{ background:#fff; border-left:4px solid var(--accent); font-weight:600; }
.settings-main{ flex:1; padding:20px; overflow-y:auto; }
.settings-tab{ display:none; }
.settings-tab.active{ display:block; }
.wallpaper-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap:10px; margin-top:10px; }
.wp-item{ height:80px; background-size:cover; cursor:pointer; border:2px solid transparent; border-radius:8px; }
.wp-item:hover{ border-color: var(--accent); }
.color-picker{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.color-dot{ width:30px; height:30px; border-radius:50%; cursor:pointer; border:2px solid #fff; box-shadow:0 2px 5px rgba(0,0,0,.2); }
.kde-btn{ margin-top:20px; padding:10px 16px; background:var(--accent); color:#fff; border:none; border-radius:8px; cursor:pointer; font-weight:700; }
.kde-btn:hover{ background: var(--accent-hover); }
.toggle-row{ display:flex; align-items:center; gap:12px; margin-top:10px; }
/* switch */
.switch{ position:relative; display:inline-block; width:46px; height:26px; }
.switch input{ opacity:0; width:0; height:0; }
.slider{ position:absolute; cursor:pointer; inset:0; background:#bdbdbd; border-radius:999px; transition:.2s; }
.slider:before{ position:absolute; content:""; height:20px; width:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .slider{ background: var(--accent); }
.switch input:checked + .slider:before{ transform: translateX(20px); }

/* NOTEPAD */
.notepad-shell{ display:flex; flex-direction:column; }
.menu-bar{ display:flex; gap:15px; padding:6px 10px; border-bottom:1px solid #ccc; font-size:.85rem; background:#f5f5f5; }
.menu-bar span{ cursor:pointer; }
.menu-bar .right{ margin-left:auto; }
.menu-bar .muted{ color:#666; }
#notepad-area{ flex:1; border:none; resize:none; outline:none; padding:12px; font-family:'Noto Sans', system-ui, sans-serif; font-size:1rem; background:#fff; color:#333; }

/* CALCULATOR */
.calc-content{ padding:15px; display:flex; flex-direction:column; }
.calc-display{ background: rgba(0,0,0,.30); color:#fff; text-align:right; padding:15px; font-size:2rem; border-radius:8px; margin-bottom:15px; font-family:'JetBrains Mono', ui-monospace, monospace; overflow-x:auto; }
.calc-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; flex:1; }
.calc-grid button{ border:1px solid var(--border-color); background: rgba(255,255,255,.05); color:#fff; font-size:1.2rem; cursor:pointer; border-radius:10px; transition:.1s; }
.calc-grid button:hover{ background: rgba(255,255,255,.15); }
.calc-grid button:active{ background: var(--accent); }
.calc-op{ color: var(--accent) !important; }
.calc-equals{ background: var(--accent) !important; color:#fff !important; }

/* ABOUT */
.about-hero{ background:#232629; color:#fff; padding:30px; text-align:center; }
.profile-img{ width:100px; height:100px; border-radius:50%; border:3px solid var(--accent); }
.social-links{ margin-top:15px; display:flex; justify-content:center; gap:15px; }
.social-links a{ color:#fff; font-size:1.2rem; transition:.2s; }
.social-links a:hover{ color: var(--accent); }
.about-details{ padding:20px; color:#333; }
.skill-tag{ display:inline-block; background:#e1f0fa; color: var(--accent); padding:4px 8px; border-radius:8px; margin:3px; font-size:.85rem; font-weight:700; }
.timeline{ list-style:none; margin-top:10px; padding-left:10px; border-left:2px solid #ddd; }
.timeline li{ margin-bottom:15px; padding-left:15px; position:relative; }
.timeline li::before{ content:''; position:absolute; left:-6px; top:5px; width:10px; height:10px; background: var(--accent); border-radius:50%; }

/* TASKBAR */
#taskbar{ position:absolute; bottom:0; left:0; width:100%; height:46px; background: var(--panel-bg); backdrop-filter: blur(15px); border-top:1px solid var(--border-color); display:flex; align-items:center; padding:0 5px; z-index:2000; box-shadow: var(--shadow-panel); }
.start-btn, .task-icon{ width:44px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:8px; cursor:pointer; margin-right:2px; transition:.2s; }
.start-btn:hover, .task-icon:hover{ background: rgba(255,255,255,.10); }
.start-btn i{ font-size:1.5rem; color: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
.task-icon i{ font-size:1.2rem; }
.task-separator{ width:1px; height:24px; background: rgba(255,255,255,.10); margin: 0 5px; }
.task-items{ flex:1; display:flex; padding-left:5px; gap:2px; overflow-x:auto; }
.task-tab{ min-width:40px; max-width:210px; height:40px; display:flex; align-items:center; gap:8px; padding:0 10px; cursor:pointer; color: var(--text-muted); font-size:.85rem; border-radius:8px; transition:.2s; position:relative; }
.task-tab:hover{ background: rgba(255,255,255,.05); }
.task-tab.active{ background: rgba(255,255,255,.10); color: var(--text-main); }
.task-tab.active::after{ content:''; position:absolute; top:0; left:10%; width:80%; height:2px; background: var(--accent); }
.task-tab span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.tray{ display:flex; align-items:center; height:100%; padding-right:5px; gap:2px; }
.tray-icon{ width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:8px; cursor:pointer; font-size:.9rem; color: var(--text-main); }
.tray-icon:hover{ background: rgba(255,255,255,.10); }
.clock-widget{ padding:0 10px; text-align:center; cursor:pointer; line-height:1.1; font-size:.85rem; }
#clock-time{ font-weight:900; font-size:1rem; }

/* START MENU */
#start-menu{ position:absolute; bottom:50px; left:10px; width:600px; height:450px; background:#2a2e32; border:1px solid var(--border-color); box-shadow: 0 0 30px rgba(0,0,0,.5); border-radius:10px; z-index:2001; display:none; transform: translateY(20px); opacity:0; transition:.2s; pointer-events:none; }
#start-menu.show{ transform: translateY(0); opacity:1; pointer-events:all; }
.kickoff-sidebar{ width:60px; background:#31363b; border-right:1px solid var(--border-color); display:flex; flex-direction:column; align-items:center; padding:10px 0; }
.kickoff-sidebar .tab{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:10px; cursor:pointer; color: var(--text-muted); margin-bottom:5px; transition:.2s; }
.kickoff-sidebar .tab:hover, .kickoff-sidebar .tab.active{ background: rgba(61,174,233,.20); color: var(--accent); }
.kickoff-sidebar .bottom{ margin-top:auto; color:#e74c3c; }

.kickoff-content{ width: calc(100% - 60px); display:flex; flex-direction:column; background: rgba(42,46,50,.95); }
.kickoff-user-profile{ padding:15px; border-bottom:1px solid var(--border-color); display:flex; align-items:center; gap:15px; background: linear-gradient(90deg, #2a2e32, transparent); }
.user-circle{ width:40px; height:40px; background: var(--accent); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:1.2rem; }
.user-info .name{ display:block; font-weight:900; }
.user-info .mail{ font-size:.8rem; color: var(--text-muted); }

.kickoff-search-bar{ padding:10px; border-bottom:1px solid var(--border-color); display:flex; align-items:center; gap:10px; }
.kickoff-search-bar input{ background:transparent; border:none; color:#fff; width:100%; outline:none; }
.kickoff-list{ flex:1; padding:10px; overflow-y:auto; display:grid; grid-template-columns: 1fr 1fr; gap:5px; align-content:start; }
.k-item{ padding:10px; display:flex; align-items:center; gap:10px; cursor:pointer; border-radius:10px; color: var(--text-main); }
.k-item:hover{ background: rgba(255,255,255,.06); }

/* NOTIFICATIONS */
#notification-area{ position:fixed; top:60px; right:20px; width:320px; z-index:9999; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast{ background:#31363b; border:1px solid var(--border-color); border-left:4px solid var(--accent); color:#fff; padding:15px; border-radius:10px; box-shadow: 0 5px 15px rgba(0,0,0,.5); transform: translateX(110%); transition: transform .3s cubic-bezier(.18,.89,.32,1.28); pointer-events:all; cursor:pointer; }
.toast.show{ transform: translateX(0); }
.toast-title{ font-weight:900; font-size:.95rem; margin-bottom:5px; }
.toast-msg{ font-size:.85rem; color: var(--text-muted); }

/* CALENDAR */
#calendar-popup{ position:absolute; bottom:50px; right:10px; width:300px; background:#2a2e32; border:1px solid var(--border-color); border-radius:10px; padding:15px; display:none; z-index:2000; box-shadow:0 0 20px rgba(0,0,0,.5); }
.cal-header{ text-align:center; font-weight:900; margin-bottom:15px; font-size:1.1rem; }
.cal-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:6px; text-align:center; font-size:.9rem; }
.cal-grid span{ padding:6px 0; border-radius:10px; }
.cal-grid .dim{ color:#555; }
.cal-grid .today{ background: var(--accent); color:#fff; }

/* BROWSER */
.browser-shell{ background:#111; color:#eee; display:flex; flex-direction:column; }
.browser-toolbar{ display:flex; gap:8px; padding:10px; border-bottom:1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.35); }
.bbtn{ border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); color:#fff; padding:8px 10px; border-radius:10px; cursor:pointer; }
.bbtn:hover{ background: rgba(255,255,255,.12); }
.bbtn.accent{ background: var(--accent); border-color: transparent; }
.browser-url{ flex:1; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); color:#fff; padding:8px 10px; border-radius:10px; outline:none; }
.browser-view{ flex:1; padding:18px; overflow:auto; }
.browser-home h2{ margin-bottom:8px; }
.browser-cards{ margin-top:14px; display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:10px; }
.browser-cards .card{ display:flex; align-items:center; gap:10px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); color:#fff; padding:14px; border-radius:14px; cursor:pointer; }
.browser-cards .card:hover{ background: rgba(255,255,255,.12); }

/* MOBILE */
@media (max-width: 768px){
    .window{ width:100% !important; height: calc(100% - 46px) !important; top:0 !important; left:0 !important; border-radius:0; }
    #start-menu{ width:100%; left:0; bottom:46px; height:80%; border-radius:0; }
    .kickoff-list{ grid-template-columns: 1fr; }
    #taskbar{ padding:0; }
    .task-tab span{ display:none; }
    .task-tab{ width:50px; justify-content:center; }
    .tray .clock-widget{ display:none; }
    .dolphin-sidebar{ width:70px; }
    .dolphin-sidebar span{ display:none; }
    .places-header{ display:none; }
    .settings-sidebar{ width:70px; }
    .settings-sidebar span{ display:none; }
    .settings-sidebar div{ justify-content:center; padding:15px 0; }
}
