/* ============================================
   THEME VARIABLES
   ============================================ */
  :root,
  [data-theme="midnight"] {
    --bg: #0d0d14;
    --glass: rgba(20, 20, 35, 0.78);
    --glass-header: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --text: #e8e8f0;
    --text-secondary: #b8b8cc;
    --muted: #888899;
    --accent: #7c6dfa;
    --accent-glow: rgba(124, 109, 250, 0.25);
    --red: #f05d5d;
    --tag-bg: rgba(124, 109, 250, 0.15);
    --tag-border: rgba(124, 109, 250, 0.3);
    --taskbar: rgba(10, 10, 20, 0.65);
    --scrollbar: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
    --font-sans: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-full: 9999px;
  }

[data-theme="ocean"] {
  --bg: #0a1628;
  --glass: rgba(15, 30, 50, 0.78);
  --glass-header: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e0f0ff;
  --text-secondary: #b0c8e0;
  --muted: #6b8aab;
  --accent: #3b9eff;
  --accent-glow: rgba(59, 158, 255, 0.25);
  --red: #ff6b6b;
  --tag-bg: rgba(59, 158, 255, 0.15);
  --tag-border: rgba(59, 158, 255, 0.3);
  --taskbar: rgba(10, 20, 40, 0.65);
  --scrollbar: rgba(255, 255, 255, 0.12);
}

[data-theme="forest"] {
  --bg: #0f1a14;
  --glass: rgba(20, 40, 30, 0.78);
  --glass-header: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e0ffe0;
  --text-secondary: #b0d8b0;
  --muted: #6b9b7b;
  --accent: #4ade80;
  --accent-glow: rgba(74, 222, 128, 0.2);
  --red: #f87171;
  --tag-bg: rgba(74, 222, 128, 0.15);
  --tag-border: rgba(74, 222, 128, 0.3);
  --taskbar: rgba(10, 25, 15, 0.65);
  --scrollbar: rgba(255, 255, 255, 0.1);
}

[data-theme="sunset"] {
  --bg: #1a0f0a;
  --glass: rgba(40, 25, 20, 0.78);
  --glass-header: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffe0d0;
  --text-secondary: #d8b8a0;
  --muted: #b08060;
  --accent: #fb923c;
  --accent-glow: rgba(251, 146, 60, 0.25);
  --red: #ef4444;
  --tag-bg: rgba(251, 146, 60, 0.15);
  --tag-border: rgba(251, 146, 60, 0.3);
  --taskbar: rgba(25, 15, 10, 0.65);
  --scrollbar: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] {
  --bg: #f5f5f8;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-header: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --muted: #6b7280;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --red: #ef4444;
  --tag-bg: rgba(99, 102, 241, 0.1);
  --tag-border: rgba(99, 102, 241, 0.25);
  --taskbar: rgba(255, 255, 255, 0.75);
  --scrollbar: rgba(0, 0, 0, 0.15);
}

[data-theme="matrix"] {
  --bg: #000000;
  --glass: rgba(0, 20, 0, 0.85);
  --glass-header: rgba(0, 255, 0, 0.08);
  --border: rgba(0, 255, 0, 0.15);
  --text: #00ff00;
  --text-secondary: #00cc00;
  --muted: #008800;
  --accent: #00ff00;
  --accent-glow: rgba(0, 255, 0, 0.2);
  --red: #ff0000;
  --tag-bg: rgba(0, 255, 0, 0.1);
  --tag-border: rgba(0, 255, 0, 0.25);
  --taskbar: rgba(0, 10, 0, 0.75);
  --scrollbar: rgba(0, 255, 0, 0.2);
}

[data-theme="cyberpunk"] {
  --bg: #0f001a;
  --glass: rgba(30, 0, 50, 0.85);
  --glass-header: rgba(255, 0, 255, 0.08);
  --border: rgba(255, 0, 255, 0.15);
  --text: #ffccff;
  --text-secondary: #d0a0d0;
  --muted: #ff00ff;
  --accent: #00ffff;
  --accent-glow: rgba(0, 255, 255, 0.25);
  --red: #ff3333;
  --tag-bg: rgba(0, 255, 255, 0.1);
  --tag-border: rgba(0, 255, 255, 0.3);
  --taskbar: rgba(15, 0, 25, 0.75);
  --scrollbar: rgba(255, 0, 255, 0.2);
}

/* ============================================
   BASE / RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image: url('wallpapers/4k-black-hole-with-bright-horizon-kug5rf2bs46mxcur.webp');
  background-size: cover;
  background-position: center;
  user-select: none;
}

/* ============================================
   BOOT SCREEN
   ============================================ */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#boot-logo {
  font-size: 64px;
  margin-bottom: 24px;
  animation: pulse 1.5s infinite;
}

#boot-text {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.1em;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ============================================
   DESKTOP
   ============================================ */
#desktop {
  position: fixed;
  inset: 0;
  z-index: 1;
}

  #windows-container {
    position: relative;
    width: 100%;
    height: 100%;
  }

  #desktop-icons {
    position: fixed;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    max-height: calc(100vh - 80px);
    z-index: 2;
  }

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  width: 80px;
  transition: background-color 0.15s, transform 0.1s;
}

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

.icon:active {
  transform: scale(0.96);
}

.icon.selected {
  background-color: var(--accent-glow);
  outline: 1px solid var(--tag-border);
}

.icon-img {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.icon-img svg {
  width: 32px;
  height: 32px;
}

.icon-label {
  font-size: 11px;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
  word-break: break-word;
}

/* ============================================
   WINDOWS
   ============================================ */
.window {
  position: absolute;
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-width: 90vw;
  background-color: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: windowOpen 0.2s ease-out;
}

.window.minimized {
  display: none !important;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 48px) !important;
  border-radius: 0;
  max-width: none;
}

@keyframes windowOpen {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes windowClose {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.window.closing {
  animation: windowClose 0.15s ease-in forwards;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: var(--glass-header);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius, 14px) var(--radius, 14px) 0 0;
  cursor: grab;
  user-select: none;
}

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

.window-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}

.window-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  width: 52px;
  justify-content: flex-end;
}

.control-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: filter 0.15s;
}

.control-btn:hover {
  filter: brightness(1.25);
}

.control-btn.close {
  background-color: var(--red);
}

.control-btn.minimize {
  background-color: #fbbf24;
}

.control-btn.maximize {
  background-color: #4ade80;
}

.window-body {
  padding: 20px 22px;
  overflow-y: auto;
  max-height: 70vh;
  flex: 1;
}

/* Resize handle */
.window-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 10;
}

.window-resize-handle::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  opacity: 0.5;
}

/* ============================================
   TASKBAR
   ============================================ */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background-color: var(--taskbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  gap: 8px;
}

#start-btn {
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.15s, transform 0.1s;
}

#start-btn:hover {
  opacity: 0.9;
}

#start-btn:active {
  transform: scale(0.96);
}

#taskbar-apps {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  align-items: center;
}

.taskbar-item {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 8px);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.taskbar-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.taskbar-item.active {
  background: var(--accent-glow);
  border-color: var(--tag-border);
}

.taskbar-item-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.taskbar-item-icon svg {
  width: 14px;
  height: 14px;
}

#system-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

#clock {
  cursor: default;
}

/* ============================================
   START MENU
   ============================================ */
#start-menu {
  position: fixed;
  bottom: 56px;
  left: 12px;
  width: 320px;
  max-height: calc(100vh - 120px);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#start-menu.open {
  display: flex;
}

#start-menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

#start-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

#start-menu-name {
  font-weight: 700;
  font-size: 14px;
}

#start-menu-subtitle {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

#start-menu-search {
  margin: 12px 16px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  color: var(--text);
  font-size: 13px;
  outline: none;
  width: calc(100% - 32px);
}

#start-menu-search::placeholder {
  color: var(--muted);
}

#start-menu-apps {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.start-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: background-color 0.15s;
}

.start-app-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.start-app-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-app-icon svg {
  width: 24px;
  height: 24px;
}

.start-app-name {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

#start-menu-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#start-menu-footer button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}

#start-menu-footer button:hover {
  color: var(--text);
}

/* ============================================
   CONTEXT MENU
   ============================================ */
#context-menu {
  position: fixed;
  z-index: 10001;
  min-width: 180px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 4px;
}

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

.ctx-item {
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.ctx-separator {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
#notification-area {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.notification {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 16px;
  min-width: 240px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease-out;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notification.removing {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.notification-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.notification-body {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar);
  border-radius: 3px;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
  display: none !important;
}

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

.text-accent {
  color: var(--accent);
}

.bg-glass {
  background: var(--glass);
}

.border-custom {
  border-color: var(--border);
}

/* ============================================
   APP-SPECIFIC STYLES
   ============================================ */

/* Profile Pic */
.profile-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  display: block;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

/* Inputs */
.input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.input:focus {
  border-color: var(--accent);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  padding: 14px;
  transition: background-color 0.15s;
}

.card:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Tags */
.tag {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: var(--radius-full, 9999px);
}

/* Section headings */
.section-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

/* Terminal */
.terminal-output {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

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

.calc-display {
  grid-column: span 4;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm, 8px);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 20px;
  margin-bottom: 4px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.calc-btn {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.1s;
  text-align: center;
}

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

.calc-btn.operator {
  background: var(--accent-glow);
  border-color: var(--tag-border);
  color: var(--accent);
}

.calc-btn.equals {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Notes */
.notes-layout {
  display: flex;
  flex-direction: row;
  padding: 0;
  height: 420px;
}

.notes-sidebar {
  width: 160px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 10px 0;
}

.note-item {
  padding: 10px 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background-color 0.12s;
}

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

.note-item.active {
  background: var(--accent-glow);
  border-left-color: var(--accent);
}

.note-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.note-item-date {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.notes-content {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.notes-placeholder {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 40%;
  text-align: center;
}

.note-content-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.note-content-date {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.note-content-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Music Player */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.music-track {
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: background-color 0.15s;
  text-align: center;
}

.music-track:hover {
  background: rgba(255, 255, 255, 0.06);
}

.music-track.playing {
  background: var(--accent-glow);
  border-color: var(--tag-border);
}

.music-track-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}

.music-track-icon svg {
  width: 32px;
  height: 32px;
}

.music-track-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.music-track-artist {
  font-size: 11px;
  color: var(--muted);
}

/* Weather */
.weather-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  padding: 20px;
  text-align: center;
}

.weather-temp {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
}

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.1s;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.06);
}

.calendar-day.today {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.calendar-day.other-month {
  color: var(--muted);
  opacity: 0.4;
}

/* Tasks */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 8px;
  transition: background-color 0.15s;
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.task-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.task-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.task-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
}

.task-text {
  flex: 1;
  font-size: 13px;
}

.task-text.done {
  text-decoration: line-through;
  color: var(--muted);
}

.task-delete {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.task-delete:hover {
  color: var(--red);
}

/* Settings */
.settings-section {
  margin-bottom: 20px;
}

.settings-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

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

.theme-option {
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.theme-option:hover {
  border-color: var(--muted);
}

.theme-option.active {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.theme-preview {
  width: 100%;
  height: 40px;
  overflow: hidden;
  border-radius: 12px;


}

.theme-preview-svg {
    display: block;
    width: 100%;
    height: auto;
}

.theme-name {
  font-size: 11px;
  font-weight: 600;
}

/* Wallpaper grid */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wallpaper-option {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  border: 2px solid var(--border);
  background-size: cover;
  background-position: center;
  transition: border-color 0.15s;
}

.wallpaper-option:hover {
  border-color: var(--muted);
}

.wallpaper-option.active {
  border-color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .window {
    min-width: 280px;
    max-width: 95vw;
  }

  #start-menu {
    width: calc(100vw - 24px);
    left: 12px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallpaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
