*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Inter,Arial,sans-serif}
:root {
  --accent: #0078d4;
  --cursor-scale: 1;
}

#boot-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#0f172a;color:#e2e8f0;z-index:9999}
#boot-screen .logo{font-size:40px;font-weight:800;letter-spacing:1px}
#boot-screen .logo span{opacity:.7;font-weight:600}
#boot-screen .loading{margin-top:16px;width:160px;height:6px;background:#1f2937;border-radius:999px;overflow:hidden}
#boot-screen .loading>div{width:40%;height:100%;background:#60a5fa;border-radius:999px;animation:load 1.6s infinite}
@keyframes load{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}

#desktop{position:relative;height:100%;overflow:hidden}
#wallpaper{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(0.92)}
.theme-dark #wallpaper{filter:brightness(0.6)}
#desktop-icons{position:absolute;top:12px;left:12px;display:grid;grid-template-columns:repeat(5,96px);gap:10px;z-index:5}
.icon{width:96px;height:92px;border-radius:10px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(255,255,255,.6);backdrop-filter:blur(6px);cursor:pointer;user-select:none}
.theme-dark .icon{background:rgba(0,0,0,.35);color:#f1f5f9}
.icon .emoji{font-size:28px}
.icon .label{font-size:13px;margin-top:6px;text-align:center}

#taskbar{
  position:absolute;
  bottom:6px;
  left:50%;
  transform:translateX(-50%);
  width:95%;
  max-width:800px;
  height:42px;
  background:rgba(255, 255, 255, .15);
  backdrop-filter:blur(10px) saturate(1.8);
  border-top:1px solid rgba(255,255,255,.2);
  border-radius:12px 12px 0 0;
  box-shadow:0 0 10px rgba(0,0,0,0.1);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  color:#e2e8f0;
  z-index:10;
}
.taskbar-left, .taskbar-right{
  display:flex;
  align-items:center;
  gap: 8px;
}
.taskbar-center{
  display:flex;
  flex:1;
  justify-content:center;
  gap:6px;
  overflow:auto;
}
.task-btn{min-width:120px;height:28px;border:0;border-radius:6px;padding:0 10px;background:rgba(255,255,255,.1);color:inherit;display:flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}
.task-btn.active{outline:2px solid rgba(255,255,255,.5)}
#clock{min-width:120px;text-align:right;font-variant-numeric:tabular-nums}
#shutdown-btn{background:none;border:none;font-size:1.2em;cursor:pointer;padding:5px;border-radius:4px;color:inherit}

#start-menu{position:absolute;bottom:52px;left:10px;width:240px;background:rgba(15,23,42,.85);color:#e5e7eb;border:1px solid rgba(255,255,255,.2);border-radius:12px;backdrop-filter:blur(8px);padding:10px;z-index:7}
#start-menu.hidden{display:none}
#start-menu .menu-group{border-bottom:1px solid rgba(255,255,255,.15);margin-bottom:8px;padding-bottom:8px}
#start-menu .menu-group.small{border-bottom:0;margin-bottom:0;padding-bottom:0;display:flex;gap:6px;flex-wrap:wrap}
#start-menu .menu-item{padding:8px;border-radius:8px;cursor:pointer}
#start-menu .menu-item:hover{background:rgba(255,255,255,.12)}

.window{position:absolute;width:640px;height:420px;background:rgba(255, 255, 255, .2);border:1px solid rgba(255, 255, 255, 0.25);border-radius:12px;overflow:hidden;box-shadow:0 8px 32px 0 rgba(0, 0, 0, 0.1);backdrop-filter:blur(20px) saturate(1.8)}
.theme-dark .window{background:rgba(0, 0, 0, .2);color:#e5e7eb;border-color:rgba(255, 255, 255, 0.05)}
.window .titlebar{height:38px;background:rgba(255, 255, 255, 0.2);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:space-between;padding:0 10px;cursor:grab;user-select:none;border-bottom: 1px solid rgba(255, 255, 255, 0.1)}
.theme-dark .window .titlebar{background:rgba(0, 0, 0, 0.2);border-bottom: 1px solid rgba(255, 255, 255, 0.05)}
.window .title{font-weight:600}
.window .actions button{width:28px;height:24px;border:0;border-radius:6px;background:rgba(0,0,0,.06);cursor:pointer}
.theme-dark .window .actions button{background:rgba(255,255,255,.12);color:#e5e7eb}

.window .content{height:calc(100% - 62px);padding:10px;overflow:auto;background:transparent}
.window .statusbar{height:24px;padding:0 8px;border-top:1px solid #cbd5e1;display:flex;align-items:center;font-size:12px;opacity:.8;background:transparent}
.theme-dark .window .statusbar{border-color:#334155}

.app-notes textarea{width:100%;height:100%;border:0;outline:none;background:transparent;font:inherit}
.app-files .file-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.app-files .file{padding:10px;border:1px dashed #94a3b8;border-radius:10px;display:flex;gap:8px;align-items:center}
.app-files .file .name{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.app-files .toolbar{display:flex;gap:6px;margin-bottom:8px}
.app-files .toolbar input, .app-files .toolbar button{height:30px;border:1px solid #cbd5e1;border-radius:8px;padding:0 8px;background:rgba(255,255,255,.3);backdrop-filter:blur(5px)}
.theme-dark .app-files .toolbar input, .theme-dark .app-files .toolbar button{border-color:#334155;background:rgba(0,0,0,.3);color:#e5e7eb}

.app-browser .omnibar{display:flex;gap:6px;margin-bottom:8px}
.app-browser .omnibar input{flex:1;height:30px;border:1px solid #cbd5e1;border-radius:8px;padding:0 8px}
.app-browser iframe{width:100%;height:calc(100% - 40px);border:1px solid #cbd5e1;border-radius:8px;background:#fff}
.theme-dark .app-browser iframe{background:#000;border-color:#334155}

.app-settings .row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px dashed #cbd5e1}
.theme-dark .app-settings .row{border-color:#334155}
.app-settings input[type=color]{width:48px;height:28px;border:0}
.wall-thumb{width:100%;height:90px;border-radius:8px;border:1px solid #cbd5e1;object-fit:cover}

.lock-overlay{position:absolute;inset:0;background:rgba(2,6,23,.92);color:#e5e7eb;display:none;align-items:center;justify-content:center;flex-direction:column;z-index:999}
.lock-overlay.show{display:flex}
.lock-overlay input{margin-top:10px;height:36px;border-radius:8px;border:1px solid #334155;background:rgba(255,255,255,.05);color:#e5e7eb;padding:0 10px}

/* ================= Settings App ================= */
.settings-app {
  display: flex;
  height: 100%;
}

.settings-sidebar {
  width: 220px;
  background: rgba(241, 245, 249, 0.8);
  backdrop-filter: blur(8px);
  padding: 10px;
  overflow-y: auto;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.theme-dark .settings-sidebar {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255,255,255,0.1);
}

.settings-sidebar .cat {
  padding: 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.settings-sidebar .cat:hover {
  background: rgba(0,0,0,0.08);
}
.theme-dark .settings-sidebar .cat:hover {
  background: rgba(255,255,255,0.08);
}

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

.settings-content h2 {
  margin-top: 0;
}

.settings-content .group {
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
}

.theme-dark .settings-content .group {
  background: rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.1);
}

.settings-content label {
  display: block;
  margin: 6px 0;
}

/* Notification Styles */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}

.notification {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #0078d4;
  animation: slideIn 0.3s ease;
  max-width: 100%;
}

.theme-dark .notification {
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
}

.notification-info {
  border-left-color: #0078d4;
}

.notification-success {
  border-left-color: #107c10;
}

.notification-warning {
  border-left-color: #d83b01;
}

.notification-error {
  border-left-color: #a80000;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}

/* Power Menu */
.power-menu {
  position: absolute;
  bottom: 50px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  z-index: 1000;
}

.theme-dark .power-menu {
  background: rgba(30, 30, 30, 0.9);
  color: white;
}

.power-option {
  padding: 8px 16px;
  cursor: pointer;
}

.power-option:hover {
  background: rgba(0, 0, 0, 0.1);
}

.theme-dark .power-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* About Section */
.about-content {
  padding: 15px;
}

.about-logo {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.about-logo span {
  opacity: 0.7;
}

.about-version {
  opacity: 0.7;
  margin-bottom: 15px;
}

.about-features, .about-stats {
  margin-top: 20px;
}

.about-features ul {
  padding-left: 20px;
}

.about-stats p {
  margin: 5px 0;
  font-family: monospace;
  font-size: 0.9em;
}

/* App List */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.3);
}

.theme-dark .app-item {
  background: rgba(0,0,0,0.2);
}

.app-icon {
  font-size: 1.5em;
}

.app-name {
  font-weight: bold;
}

.app-desc {
  font-size: 0.9em;
  opacity: 0.7;
}

/* Animations */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* টার্মিনাল স্টাইল */
.app-terminal {
  background: #000 !important;
  color: #0f0 !important;
  font-family: 'Courier New', monospace !important;
}

.app-terminal input {
  background: transparent !important;
  color: #0f0 !important;
  border: none !important;
  outline: none !important;
  font-family: 'Courier New', monospace !important;
  caret-color: #0f0 !important;
}

/* টার্মিনাল স্ক্রলবার */
.app-terminal ::-webkit-scrollbar {
  width: 8px;
}

.app-terminal ::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.app-terminal ::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

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

/* টার্মিনাল কন্টেন্ট */
.terminal-content {
  background: #000;
  color: #0f0;
  padding: 10px;
  height: 100%;
  overflow-y: auto;
}

.terminal-command {
  color: #00ff00;
}

.terminal-output {
  color: #0f0;
  white-space: pre-wrap;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #0f0;
  font-family: 'Courier New', monospace;
  width: 100%;
}

/* টার্মিনাল হেডার */
.terminal-header {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  font-weight: bold;
  color: #0f0;
}

.terminal-close-btn {
  background: none;
  border: none;
  color: #0f0;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 16px;
}

/* টার্মিনাল প্রম্পট */
.terminal-prompt {
  color: #00ff00;
  margin-right: 5px;
  font-family: 'Courier New', monospace;
}

/* টার্মিনাল আউটপুট লাইন */
.terminal-line {
  color: #0f0;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* টার্মিনাল ইনপুট লাইন */
.terminal-input-line {
  display: flex;
  align-items: center;
  padding: 8px;
  border-top: 1px solid #333;
  background: #0a0a0a;
}
/* Music Player Styles */
.app-music {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.music-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.player-controls {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.song-info {
  margin-bottom: 15px;
}

.current-song {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.song-time {
  font-size: 0.9em;
  opacity: 0.7;
}

.control-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.control-buttons button {
  padding: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 1.2em;
}

.progress-container {
  margin-top: 15px;
}

.progress-bar {
  width: 100%;
  margin-bottom: 10px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.volume-slider {
  width: 100px;
}

.playlist-section {
  flex: 1;
  overflow-y: auto;
}

.playlist-items {
  margin-top: 10px;
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.song-name {
  flex: 1;
}

.play-song-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.theme-dark .app-music {
  color: white;
}

.theme-dark .player-controls {
  background: rgba(0, 0, 0, 0.3);
}

.theme-dark .playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
/* Calculator Styles */
.app-calculator {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.calculator-display {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: right;
  min-height: 80px;
}

.previous-operand {
  font-size: 1em;
  opacity: 0.7;
  min-height: 20px;
}

.current-operand {
  font-size: 2em;
  font-weight: bold;
  margin-top: 5px;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-btn {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.calc-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.calc-btn.operation {
  background: rgba(255, 165, 0, 0.3);
}

.calc-btn.operation:hover {
  background: rgba(255, 165, 0, 0.5);
}

.calc-btn.equals {
  background: rgba(0, 128, 0, 0.3);
}

.calc-btn.equals:hover {
  background: rgba(0, 128, 0, 0.5);
}

.calc-btn.zero {
  grid-column: span 2;
}

.calculator-history {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.history-items {
  margin-top: 10px;
}

.history-item {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: monospace;
}

.theme-dark .app-calculator {
  color: white;
}

.theme-dark .calculator-display {
  background: rgba(0, 0, 0, 0.3);
}

.theme-dark .calc-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.theme-dark .calc-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* Task Manager Styles */
.app-taskmanager {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.task-input {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-input input,
.task-input textarea,
.task-input select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
}

.task-input textarea {
  height: 60px;
  resize: vertical;
}

.task-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.task-filters {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.filter-btn {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}

.filter-btn.active {
  background: #0078d4;
  color: white;
  border-color: #0078d4;
}

.tasks-container {
  flex: 1;
  overflow-y: auto;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #ccc;
}

.task-item.completed {
  opacity: 0.6;
}

.task-item.high {
  border-left-color: #ff4444;
}

.task-item.medium {
  border-left-color: #ffbb33;
}

.task-item.low {
  border-left-color: #00C851;
}

.task-checkbox {
  flex-shrink: 0;
}

.task-content {
  flex: 1;
}

.task-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.task-description {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.task-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8em;
  opacity: 0.6;
}

.priority {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7em;
}

.priority.high {
  background: #ff4444;
  color: white;
}

.priority.medium {
  background: #ffbb33;
  color: black;
}

.priority.low {
  background: #00C851;
  color: white;
}

.task-actions {
  display: flex;
  gap: 5px;
}

.task-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.task-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
}

.no-tasks {
  text-align: center;
  padding: 20px;
  opacity: 0.5;
}

.theme-dark .app-taskmanager {
  color: white;
}

.theme-dark .task-input {
  background: rgba(0, 0, 0, 0.3);
}

.theme-dark .task-input input,
.theme-dark .task-input textarea,
.theme-dark .task-input select {
  background: #2a2a2a;
  color: white;
  border-color: #555;
}

.theme-dark .filter-btn {
  background: #333;
  color: white;
  border-color: #555;
}

.theme-dark .filter-btn.active {
  background: #0078d4;
}

.theme-dark .task-item {
  background: rgba(255, 255, 255, 0.05);
}
/* Network info styling */
.network-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.info-row .label {
  font-weight: bold;
  color: #666;
}

/* Shortcut input styling */
.shortcut-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shortcut-input {
  width: 80px;
  text-align: center;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.shortcut-input:focus {
  outline: none;
  border-color: #0078d4;
}

/* Group styling */
.group {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
}

.group h3 {
  margin-top: 0;
  color: #0078d4;
}
/* macOS-style Dock */
.mac-dock {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 9998;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dock-container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: auto;
}

.dock-items {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
}

.dock-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  font-size: 20px;
}

.dock-item:hover {
  transform: scale(1.4);
  margin: 0 8px;
}

.dock-item.active {
  background: rgba(255, 255, 255, 0.3);
}

.dock-item.running::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.theme-dark .dock-container {
  background: rgba(0, 0, 0, 0.4);
}

.theme-dark .dock-item.running::after {
  background: rgba(255, 255, 255, 0.7);
}






/* --- macOS-like Dock --- */
#dock {
    position: absolute;
    bottom: 50px; /* Adjusting this value to be above the taskbar */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 8px 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 51; /* A higher z-index to place it above the taskbar */
    transition: transform 0.3s ease;
}

#dock .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

#dock .icon:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

#dock .icon .emoji {
    font-size: 32px;
}

#dock button#app-drawer-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

#dock button#app-drawer-btn .emoji {
    font-size: 32px;
    color: white;
}

/* --- App Drawer --- */
#app-drawer {
    position: absolute;
    bottom: 120px; /* Position it above the dock */
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 52; /* Highest z-index */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#app-drawer.show {
    opacity: 1;
    pointer-events: auto;
}

.app-drawer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    justify-items: center;
    align-items: center;
    padding: 10px;
}

.app-drawer-grid::-webkit-scrollbar {
    width: 8px;
}

.app-drawer-grid::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.app-drawer-grid .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    color: white;
    width: 80px;
    transition: transform 0.2s ease;
}

.app-drawer-grid .icon:hover {
    transform: scale(1.1);
}

.app-drawer-grid .icon .emoji {
    font-size: 48px;
    margin-bottom: 5px;
}

.app-drawer-grid .icon .label {
    font-size: 12px;
}

/* ==================================== */

#taskbar{
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:95%;
  max-width:800px;
  height:42px;
  background:rgba(255, 255, 255, .15);
  backdrop-filter:blur(10px) saturate(1.8);
  border-top:1px solid rgba(255,255,255,.2);
  border-radius:12px 12px 0 0;
  box-shadow:0 0 10px rgba(0,0,0,0.1);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  color:#e2e8f0;
  z-index:50;
}
.taskbar-left, .taskbar-right{
  display:flex;
  align-items:center;
  gap: 8px;
}
.taskbar-center{
  display:flex;
  flex:1;
  justify-content:center;
  gap:6px;
  overflow:auto;
}
.task-btn{min-width:120px;height:28px;border:0;border-radius:6px;padding:0 10px;background:rgba(255,255,255,.1);color:inherit;display:flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}
.task-btn.active{outline:2px solid rgba(255,255,255,.5)}
#clock{min-width:120px;text-align:right;font-variant-numeric:tabular-nums}
#shutdown-btn{background:none;border:none;font-size:1.2em;cursor:pointer;padding:5px;border-radius:4px;color:inherit}
/* Settings App Styles - Redesigned */
.settings-app {
  display: flex;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.settings-app.loaded {
  opacity: 1;
  transform: translateY(0);
}

.settings-sidebar {
  width: 250px;
  background: var(--sidebar-bg, rgba(241, 245, 249, 0.8));
  border-right: 1px solid var(--border-color, rgba(0,0,0,0.1));
  padding: 15px 0;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}

.theme-dark .settings-sidebar {
  background: var(--sidebar-bg-dark, rgba(30, 41, 59, 0.7));
  border-color: var(--border-color-dark, rgba(255,255,255,0.1));
}

.settings-sidebar .cat {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
}

.settings-sidebar .cat:hover {
  background: var(--hover-bg, rgba(0,0,0,0.05));
}

.theme-dark .settings-sidebar .cat:hover {
  background: var(--hover-bg-dark, rgba(255,255,255,0.05));
}

.settings-sidebar .cat.active {
  background: var(--accent-light, rgba(0, 120, 212, 0.1));
  border-left-color: var(--accent, #0078d4);
  color: var(--accent, #0078d4);
  font-weight: 600;
}

.settings-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  transition: opacity 0.2s ease;
}

.settings-content.transitioning {
  opacity: 0.5;
}

.settings-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.1));
}

.settings-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary, #1f2937);
}

.theme-dark .settings-header h2 {
  color: var(--text-primary-dark, #f1f5f9);
}

.settings-header p {
  margin: 0;
  color: var(--text-secondary, #6b7280);
  font-size: 14px;
}

.theme-dark .settings-header p {
  color: var(--text-secondary-dark, #94a3b8);
}

.group {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 12px;
  background: var(--card-bg, rgba(255, 255, 255, 0.5));
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.theme-dark .group {
  background: var(--card-bg-dark, rgba(0, 0, 0, 0.3));
  border-color: var(--border-color-dark, rgba(255,255,255,0.1));
}

.group h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-dark .group h3 {
  color: var(--text-primary-dark, #f1f5f9);
}

.setting-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.05));
}

.theme-dark .setting-item {
  border-color: var(--border-light-dark, rgba(255,255,255,0.05));
}

.setting-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary, #1f2937);
}

.theme-dark .setting-item label {
  color: var(--text-primary-dark, #f1f5f9);
}

.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-bg, #ccc);
  transition: .3s;
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--accent, #0078d4);
}

input:focus + .slider-round {
  box-shadow: 0 0 1px var(--accent, #0078d4);
}

input:checked + .slider-round:before {
  transform: translateX(20px);
}

/* Slider Input */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--slider-bg, #d1d5db);
  outline: none;
}

.theme-dark .slider {
  background: var(--slider-bg-dark, #4b5563);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #0078d4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #0078d4);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Fancy Select */
.fancy-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border, #d1d5db);
  background: var(--input-bg, white);
  color: var(--text-primary, #1f2937);
  font-size: 14px;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.fancy-select:focus {
  outline: none;
  border-color: var(--accent, #0078d4);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.theme-dark .fancy-select {
  background-color: var(--input-bg-dark, #374151);
  border-color: var(--input-border-dark, #4b5563);
  color: var(--text-primary-dark, #f1f5f9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* Buttons */
.action-button, .secondary-button, .danger-button {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.action-button {
  background: var(--accent, #0078d4);
  color: white;
}

.action-button:hover {
  background: var(--accent-hover, #106ebe);
  transform: translateY(-1px);
}

.secondary-button {
  background: var(--button-secondary-bg, #f3f4f6);
  color: var(--button-secondary-text, #374151);
  border: 1px solid var(--button-secondary-border, #d1d5db);
}

.secondary-button:hover {
  background: var(--button-secondary-hover, #e5e7eb);
  transform: translateY(-1px);
}

.danger-button {
  background: var(--danger, #dc2626);
  color: white;
}

.danger-button:hover {
  background: var(--danger-hover, #b91c1c);
  transform: translateY(-1px);
}

.theme-dark .secondary-button {
  background: var(--button-secondary-bg-dark, #374151);
  color: var(--button-secondary-text-dark, #e5e7eb);
  border-color: var(--button-secondary-border-dark, #4b5563);
}

.theme-dark .secondary-button:hover {
  background: var(--button-secondary-hover-dark, #4b5563);
}

.text-button {
  background: none;
  border: none;
  color: var(--accent, #0078d4);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.text-button:hover {
  background: rgba(0, 120, 212, 0.1);
}

.theme-dark .text-button {
  color: var(--accent-light, #60a5fa);
}

.theme-dark .text-button:hover {
  background: rgba(96, 165, 250, 0.1);
}

/* Input with button */
.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border, #d1d5db);
  background: var(--input-bg, white);
  color: var(--text-primary, #1f2937);
}

.theme-dark .input-with-button input {
  background: var(--input-bg-dark, #374151);
  border-color: var(--input-border-dark, #4b5563);
  color: var(--text-primary-dark, #f1f5f9);
}

/* Theme Selector */
.theme-selector {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.theme-option:hover {
  background: var(--hover-bg, rgba(0,0,0,0.05));
}

.theme-option.active {
  border-color: var(--accent, #0078d4);
  background: var(--accent-light, rgba(0, 120, 212, 0.1));
}

.theme-preview {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
}

.light-theme {
  background: linear-gradient(to right, #f9fafb 50%, #e5e7eb 50%);
}

.dark-theme {
  background: linear-gradient(to right, #1f2937 50%, #374151 50%);
}

.auto-theme {
  background: linear-gradient(to right, #f9fafb 33%, #e5e7eb 33%, #1f2937 66%, #374151 66%);
}

/* Color Picker */
.color-picker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.color-picker input[type="color"] {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.color-presets {
  display: flex;
  gap: 6px;
}

.color-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.color-option:hover {
  transform: scale(1.2);
}

/* Wallpaper Preview */
.wall-thumb {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  margin-top: 8px;
}

.no-wallpaper {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  border: 2px dashed var(--border-color, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #6b7280);
  margin-top: 8px;
}

.theme-dark .no-wallpaper {
  border-color: var(--border-color-dark, #4b5563);
  color: var(--text-secondary-dark, #94a3b8);
}

/* Network Info */
.network-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.05));
}

.info-row .label {
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
}

.info-row .status {
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status.online {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(21, 128, 61);
}

.status.offline {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(185, 28, 28);
}

.theme-dark .info-row .label {
  color: var(--text-secondary-dark, #94a3b8);
}

.theme-dark .info-row {
  border-color: var(--border-light-dark, rgba(255,255,255,0.05));
}

/* Data Usage */
.data-usage {
  display: flex;
  gap: 20px;
  align-items: center;
}

.usage-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 100px;
}

.chart-bar {
  width: 30px;
  background: var(--accent, #0078d4);
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  font-size: 10px;
  color: white;
  transition: height 0.5s ease;
}

.usage-stats {
  flex: 1;
}

/* App Notifications */
.app-notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.app-notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--card-bg, rgba(255, 255, 255, 0.3));
  border: 1px solid var(--border-light, rgba(0,0,0,0.05));
}

.theme-dark .app-notification-item {
  background: var(--card-bg-dark, rgba(0, 0, 0, 0.2));
  border-color: var(--border-light-dark, rgba(255,255,255,0.05));
}

.app-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  font-size: 20px;
}

.app-name {
  font-weight: 500;
}

/* Utility Buttons */
.utility-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Help Text */
.help-text {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
  margin-top: 4px;
  margin-bottom: 0;
}

.theme-dark .help-text {
  color: var(--text-secondary-dark, #94a3b8);
}

/* User Profile */
.user-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.profile-picture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent, #0078d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: white;
}

.profile-info {
  flex: 1;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-app {
    flex-direction: column;
  }
  
  .settings-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.1));
    padding: 10px 0;
    overflow-x: auto;
    display: flex;
  }
  
  .settings-sidebar .cat {
    padding: 8px 12px;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }
  
  .settings-sidebar .cat.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent, #0078d4);
  }
  
  .settings-content {
    padding: 15px;
  }
  
  .user-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .data-usage {
    flex-direction: column;
    align-items: stretch;
  }
  
  .utility-buttons {
    flex-direction: column;
  }
}


/* ===== Workable add-ons ===== */
.reduce-motion * {
  animation: none !important;
  transition: none !important;
}
.high-contrast, .high-contrast * {
  color: #000 !important;
  background: #fff !important;
  border-color: #000 !important;
  box-shadow: none !important;
}
.bold-text, .bold-text * {
  font-weight: 700 !important;
}
.keyboard-nav :focus {
  outline: 3px solid var(--accent, #0078d4) !important;
  outline-offset: 2px;
}
.big-cursor {
  position: fixed;
  left: 0; top: 0;
  width: 16px; height: 16px;
  pointer-events: none;
  border: 2px solid #000;
  border-radius: 50%;
  transform: translate(-1000px,-1000px);
  mix-blend-mode: difference;
  z-index: 100000;
}
.big-cursor-on, .big-cursor-on * { cursor: none !important; }
