/* ==========================================================================
   flowOS - Black & Matrix Green Cyber/Coder Workstation Edition
   High-performance glassmorphic UI with obsidian depth & neon emerald glows
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* === DESIGN SYSTEM TOKENS === */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* Primary Black & Green Dark Theme */
html[data-theme="dark"] {
  --bg-base: #040605;
  --surface-glass: rgba(8, 14, 10, 0.78);
  --surface-glass-heavy: rgba(5, 10, 7, 0.92);
  --surface-solid: #09120c;
  --surface-solid-hover: #0f1e14;
  --surface-active: rgba(16, 185, 129, 0.12);
  --border-subtle: rgba(16, 185, 129, 0.12);
  --border-highlight: rgba(34, 197, 94, 0.28);
  --border: rgba(16, 185, 129, 0.18);
  --text: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  --accent: #10b981;
  --accent-neon: #00ff66;
  --accent-hover: #34d399;
  --accent-bg: rgba(16, 185, 129, 0.16);
  --accent-glow: rgba(16, 185, 129, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.08);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(16, 185, 129, 0.22), 0 0 30px rgba(16, 185, 129, 0.12);
  --shadow: rgba(0, 0, 0, 0.75);
  --menubar: rgba(4, 8, 6, 0.85);
  --dock-bg: rgba(6, 12, 8, 0.72);
  --window-bg: rgba(7, 13, 9, 0.88);
  --window-titlebar: rgba(9, 17, 12, 0.94);
  --ctx-bg: rgba(6, 12, 8, 0.94);
  --spotlight-bg: rgba(5, 11, 7, 0.95);
  --input-bg: rgba(16, 185, 129, 0.06);
  --input-focus-bg: rgba(16, 185, 129, 0.1);
  --scrollbar: rgba(16, 185, 129, 0.2);
  --scrollbar-hover: rgba(16, 185, 129, 0.4);
  --notification-bg: rgba(7, 14, 10, 0.92);
  --sidebar-bg: rgba(5, 10, 7, 0.7);
  --file-hover: rgba(16, 185, 129, 0.09);
  --selected: rgba(16, 185, 129, 0.28);
  --tab-active: rgba(16, 185, 129, 0.12);
  --close: #ff5f57;
  --minimize: #febc2e;
  --maximize: #28c840;
}

/* Light Cyber-Emerald Theme */
html[data-theme="light"] {
  --bg-base: #f0fdf4;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-glass-heavy: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-solid-hover: #f0fdf4;
  --surface-active: rgba(16, 185, 129, 0.08);
  --border-subtle: rgba(16, 185, 129, 0.14);
  --border-highlight: rgba(16, 185, 129, 0.4);
  --border: rgba(16, 185, 129, 0.18);
  --text: #064e3b;
  --text-secondary: #047857;
  --text-muted: #10b981;
  --accent: #059669;
  --accent-neon: #10b981;
  --accent-hover: #047857;
  --accent-bg: rgba(16, 185, 129, 0.14);
  --accent-glow: rgba(16, 185, 129, 0.3);
  --shadow-sm: 0 4px 12px rgba(6, 78, 59, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 78, 59, 0.12);
  --shadow-lg: 0 24px 64px rgba(6, 78, 59, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.12);
  --shadow: rgba(6, 78, 59, 0.15);
  --menubar: rgba(255, 255, 255, 0.85);
  --dock-bg: rgba(255, 255, 255, 0.75);
  --window-bg: rgba(255, 255, 255, 0.92);
  --window-titlebar: rgba(240, 253, 244, 0.95);
  --ctx-bg: rgba(255, 255, 255, 0.95);
  --spotlight-bg: rgba(255, 255, 255, 0.96);
  --input-bg: rgba(16, 185, 129, 0.05);
  --input-focus-bg: rgba(16, 185, 129, 0.09);
  --scrollbar: rgba(16, 185, 129, 0.2);
  --scrollbar-hover: rgba(16, 185, 129, 0.38);
  --notification-bg: rgba(255, 255, 255, 0.96);
  --sidebar-bg: rgba(240, 253, 244, 0.7);
  --file-hover: rgba(16, 185, 129, 0.08);
  --selected: rgba(16, 185, 129, 0.2);
  --tab-active: rgba(16, 185, 129, 0.1);
  --close: #ff5f57;
  --minimize: #febc2e;
  --maximize: #28c840;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  user-select: none;
}

.hidden {
  display: none !important;
}

/* === LAYER 1: BOOT SCREEN === */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 45%, #07150c 0%, #020403 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.boot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.boot-logo {
  animation: bootGlow 2.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(16, 185, 129, 0.5));
}

@keyframes bootGlow {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 10px 24px rgba(16, 185, 129, 0.4)); }
  50% { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 16px 40px rgba(0, 255, 102, 0.7)); }
}

.boot-progress {
  width: 220px;
  height: 4px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
}

.boot-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #059669, #10b981, #00ff66);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.9);
  transition: width 0.08s var(--ease-out);
}

/* === DESKTOP & WALLPAPER === */
#desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  display: none;
}

#wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: background 0.6s var(--ease-out), opacity 0.5s ease;
}

html[data-theme="dark"] #wallpaper {
  background: radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(5, 150, 105, 0.14) 0%, transparent 50%),
              linear-gradient(135deg, #030604 0%, #07120a 50%, #020503 100%);
}

html[data-theme="light"] #wallpaper {
  background: radial-gradient(circle at 20% 20%, #d1fae5 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, #a7f3d0 0%, transparent 50%),
              linear-gradient(135deg, #ecfdf5 0%, #dcfce7 45%, #f0fdf4 100%);
}

/* === DESKTOP ICONS === */
#desktop-icons {
  position: absolute;
  top: 44px;
  left: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.desktop-icon {
  width: 86px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s var(--ease-out);
}

.desktop-icon:hover {
  background: rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(14px);
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.desktop-icon.selected {
  background: var(--selected);
  backdrop-filter: blur(16px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-glow);
}

.desktop-icon svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  transition: transform 0.18s var(--ease-out);
}

.desktop-icon:hover svg {
  transform: scale(1.06);
}

.desktop-icon span {
  color: #ecfdf5;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  word-break: break-word;
  padding: 2px 5px;
  border-radius: 4px;
}

/* === TOP MENU BAR === */
#menu-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 9000;
  background: var(--menubar);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.menu-left, .menu-right {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.menu-app-icon {
  padding: 3px 6px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.menu-app-icon:hover {
  background: var(--surface-active);
}

.menu-app-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  cursor: default;
}

.menu-items {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu-item {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  position: relative;
  transition: all 0.12s var(--ease-out);
}

.menu-item:hover, .menu-item.active {
  color: var(--text);
  background: var(--surface-active);
}

.menu-dropdown {
  position: absolute;
  top: 28px;
  left: 0;
  background: var(--ctx-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 5px;
  min-width: 210px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.1);
  animation: menuDrop 0.16s var(--ease-out);
  transform-origin: top left;
  z-index: 9999;
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ctx-item {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.1s var(--ease-out);
}

.ctx-item:hover {
  background: var(--accent);
  color: #040605;
  font-weight: 600;
}

.ctx-item .shortcut {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin-left: 16px;
}

.ctx-item:hover .shortcut {
  color: rgba(4, 6, 5, 0.8);
}

.ctx-sep {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 6px;
}

.menu-icon {
  padding: 3px 6px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.menu-icon:hover {
  color: var(--accent);
  background: var(--surface-active);
}

.menu-clock {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
  padding: 2px 8px;
  white-space: nowrap;
  cursor: default;
  font-variant-numeric: tabular-nums;
}

/* === CONTEXT MENU === */
#context-menu {
  position: fixed;
  z-index: 10000;
  background: var(--ctx-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 5px;
  min-width: 210px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.12);
  animation: menuDrop 0.15s var(--ease-out);
}

/* === DOCK === */
#dock-wrapper {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

#dock {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: var(--dock-bg);
  backdrop-filter: blur(38px) saturate(220%);
  -webkit-backdrop-filter: blur(38px) saturate(220%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 6px 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 
              0 0 0 1px var(--border-subtle),
              0 0 24px rgba(16, 185, 129, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.2s var(--ease-out);
}

#dock-apps, #dock-minimized {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.dock-separator {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  margin: 0 4px;
  align-self: center;
  flex-shrink: 0;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 2px 2px 0;
}

.dock-item svg, .dock-item .dock-icon {
  width: 44px;
  height: 44px;
  transform-origin: bottom center;
  transition: transform 0.18s var(--ease-out), filter 0.18s;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.dock-item:hover svg {
  filter: drop-shadow(0 8px 18px rgba(16, 185, 129, 0.4));
}

.dock-item .dock-label {
  position: absolute;
  top: -34px;
  background: var(--ctx-bg);
  backdrop-filter: blur(24px) saturate(180%);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(4px);
  transition: all 0.15s var(--ease-out);
}

.dock-item:hover .dock-label {
  opacity: 1;
  transform: translateY(0);
}

.dock-item .dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 4px;
  opacity: 0;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: all 0.2s;
}

.dock-item.running .dock-dot {
  opacity: 1;
  background: var(--accent);
}

.dock-item.bouncing {
  animation: dockBounce 0.65s var(--ease-spring);
}

@keyframes dockBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-22px); }
  60% { transform: translateY(-8px); }
}

/* === WINDOW MANAGER & CHROME === */
.app-window {
  position: absolute;
  background: var(--window-bg);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 340px;
  min-height: 240px;
  animation: windowOpen 0.24s var(--ease-out);
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s;
}

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

.app-window.focused {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.app-window.maximized {
  border-radius: 0 !important;
  top: 30px !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 30px) !important;
  box-shadow: none !important;
}

.app-window.minimizing {
  transition: transform 0.35s var(--ease-in-out), opacity 0.35s;
  transform-origin: bottom center;
}

/* Titlebar */
.window-titlebar {
  display: flex;
  align-items: center;
  height: 40px;
  min-height: 40px;
  background: var(--window-titlebar);
  border-bottom: 1px solid var(--border-subtle);
  cursor: default;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

.traffic-light:hover {
  transform: scale(1.08);
}

.traffic-light svg {
  width: 8px;
  height: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}

.traffic-lights:hover .traffic-light svg {
  opacity: 0.8;
}

.tl-close { background: var(--close); }
.tl-minimize { background: var(--minimize); }
.tl-maximize { background: var(--maximize); }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-titlebar-spacer {
  width: 56px;
  flex-shrink: 0;
}

.window-body {
  flex: 1;
  overflow: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}

/* Resize Handles */
.resize-handle { position: absolute; z-index: 5; }
.resize-handle.n { top: -4px; left: 12px; right: 12px; height: 8px; cursor: n-resize; }
.resize-handle.s { bottom: -4px; left: 12px; right: 12px; height: 8px; cursor: s-resize; }
.resize-handle.e { right: -4px; top: 12px; bottom: 12px; width: 8px; cursor: e-resize; }
.resize-handle.w { left: -4px; top: 12px; bottom: 12px; width: 8px; cursor: w-resize; }
.resize-handle.ne { top: -4px; right: -4px; width: 16px; height: 16px; cursor: ne-resize; }
.resize-handle.nw { top: -4px; left: -4px; width: 16px; height: 16px; cursor: nw-resize; }
.resize-handle.se { bottom: -4px; right: -4px; width: 16px; height: 16px; cursor: se-resize; }
.resize-handle.sw { bottom: -4px; left: -4px; width: 16px; height: 16px; cursor: sw-resize; }

/* === APP: FILES EXPLORER === */
.files-app {
  display: flex;
  height: 100%;
  background: var(--surface-glass);
}

.files-sidebar {
  width: 190px;
  min-width: 190px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-subtle);
  padding: 12px 6px;
  overflow-y: auto;
  flex-shrink: 0;
}

.files-sidebar .sidebar-section {
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 8px;
}

.files-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin: 2px 4px;
  transition: all 0.12s var(--ease-out);
}

.files-sidebar .sidebar-item:hover {
  background: var(--file-hover);
  color: var(--text);
}

.files-sidebar .sidebar-item.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}

.files-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
}

.files-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-glass-heavy);
  min-height: 40px;
}

.files-toolbar button {
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  transition: all 0.15s;
}

.files-toolbar button:hover {
  background: var(--surface-active);
  color: var(--text);
}

.files-toolbar button.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}

.files-toolbar .breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 6px;
}

.files-toolbar .breadcrumb span {
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  transition: background 0.12s;
}

.files-toolbar .breadcrumb span:hover {
  background: var(--file-hover);
  color: var(--text);
}

.files-toolbar .breadcrumb .sep {
  color: var(--text-muted);
  cursor: default;
  padding: 0;
}

.files-search {
  padding: 6px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.files-search input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 12.5px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.15s;
}

.files-search input:focus {
  border-color: var(--accent);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 2px var(--accent-bg);
}

.files-grid {
  flex: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
  align-content: start;
  overflow-y: auto;
}

.files-list {
  flex: 1;
  overflow-y: auto;
}

.files-list-header {
  display: grid;
  grid-template-columns: 1fr 120px 140px;
  padding: 8px 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-glass-heavy);
  position: sticky;
  top: 0;
  z-index: 2;
}

.files-list-item {
  display: grid;
  grid-template-columns: 1fr 120px 140px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background 0.1s;
}

.files-list-item:hover {
  background: var(--file-hover);
}

.files-list-item.selected {
  background: var(--selected);
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s var(--ease-out);
}

.file-item:hover {
  background: var(--file-hover);
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.file-item.selected {
  background: var(--selected);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.file-item svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.file-item span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
  max-width: 86px;
}

/* === APP: BROWSER === */
.browser-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-solid);
}

.browser-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 10px 0;
  background: var(--window-titlebar);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.browser-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: none;
  transition: all 0.12s;
}

.browser-tab:hover {
  color: var(--text);
  background: var(--surface-active);
}

.browser-tab.active {
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 600;
  border-color: var(--border-subtle);
}

.browser-tab .tab-close {
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.browser-tab .tab-close:hover {
  background: rgba(16, 185, 129, 0.2);
  color: var(--text);
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-glass);
}

.browser-toolbar button {
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 9px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  transition: all 0.15s;
}

.browser-toolbar button:hover {
  background: var(--surface-active);
  color: var(--text);
}

.browser-url {
  flex: 1;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 12.5px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.15s;
}

.browser-url:focus {
  border-color: var(--accent);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 2px var(--accent-bg);
}

.browser-content {
  flex: 1;
  background: #060907;
  position: relative;
}

.browser-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.browser-content .browser-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
}

.browser-content .browser-home input {
  width: 440px;
  max-width: 90%;
  padding: 12px 20px;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--surface-solid);
  color: var(--text);
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
}

.browser-content .browser-home input:focus {
  border-color: var(--accent);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.browser-content .browser-home .favorites {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.browser-content .browser-home .fav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s var(--ease-out);
}

.browser-content .browser-home .fav-item:hover {
  background: var(--surface-active);
  transform: translateY(-3px);
}

.browser-content .browser-home .fav-item .fav-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040605;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.browser-content .browser-home .fav-item span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* === APP: NOTES === */
.notes-app {
  display: flex;
  height: 100%;
  background: var(--surface-glass);
}

.notes-sidebar {
  width: 230px;
  min-width: 230px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.notes-sidebar-header {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.notes-sidebar-header button {
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: all 0.15s;
}

.notes-sidebar-header button:hover {
  background: var(--accent);
  color: #040605;
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 6px;
}

.notes-list-item {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition: all 0.12s var(--ease-out);
}

.notes-list-item:hover {
  background: var(--file-hover);
}

.notes-list-item.active {
  background: var(--selected);
  border-color: var(--accent);
}

.notes-list-item .note-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes-list-item .note-preview {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.notes-list-item .note-date {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notes-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
}

.notes-editor-toolbar {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 6px;
  background: var(--surface-glass-heavy);
}

.notes-editor-toolbar button {
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.12s;
}

.notes-editor-toolbar button:hover {
  background: var(--surface-active);
  color: var(--text);
}

.notes-editor-body {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}

.notes-editor-body [contenteditable] {
  width: 100%;
  min-height: 100%;
  outline: none;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.notes-editor-body [contenteditable]:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

/* === APP: TERMINAL (CYBER MATRIX GREEN) === */
.terminal-app {
  background: #020403;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.95);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.terminal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.6;
  color: #a7f3d0;
  cursor: text;
}

.terminal-body .term-line {
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 4px;
}

.terminal-body .term-prompt {
  color: #00ff66;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.terminal-body .term-output {
  color: #4ade80;
}

.terminal-body .term-error {
  color: #f87171;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 16px 14px;
  border-top: 1px solid rgba(16, 185, 129, 0.12);
  background: rgba(0, 0, 0, 0.4);
}

.terminal-input-line .term-prompt {
  color: #00ff66;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.terminal-input-line input {
  flex: 1;
  background: none;
  border: none;
  color: #ecfdf5;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
  caret-color: #00ff66;
}

/* === APP: CALCULATOR === */
.calculator-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-solid);
}

.calc-memory {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-memory button {
  flex: 1;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--input-bg);
  border: none;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s;
}

.calc-memory button:last-child {
  border-right: none;
}

.calc-memory button:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.calc-display {
  padding: 20px 24px;
  text-align: right;
  font-size: 38px;
  font-weight: 300;
  font-family: var(--font-sans);
  color: var(--text);
  min-height: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  word-break: break-all;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--surface-glass);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  flex: 1;
}

.calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: var(--surface-solid);
  color: var(--text);
  padding: 0;
  transition: all 0.1s;
}

.calc-btn:hover {
  filter: brightness(1.25);
  background: var(--surface-solid-hover);
}

.calc-btn:active {
  filter: brightness(0.85);
  transform: scale(0.98);
}

.calc-btn.fn {
  background: var(--input-bg);
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
}

.calc-btn.op {
  background: var(--accent);
  color: #040605;
  font-size: 22px;
  font-weight: 700;
}

.calc-btn.op:hover {
  background: var(--accent-hover);
}

.calc-btn.zero {
  grid-column: span 2;
  text-align: left;
  padding-left: 28px;
  justify-content: flex-start;
}

/* === APP: SETTINGS === */
.settings-app {
  display: flex;
  height: 100%;
  background: var(--surface-glass);
}

.settings-sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-subtle);
  padding: 12px 6px;
  overflow-y: auto;
  flex-shrink: 0;
}

.settings-sidebar .settings-nav-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  transition: all 0.12s var(--ease-out);
}

.settings-sidebar .settings-nav-item:hover {
  background: var(--file-hover);
  color: var(--text);
}

.settings-sidebar .settings-nav-item.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}

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

.settings-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 24px;
}

.settings-group {
  margin-bottom: 28px;
}

.settings-group h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.toggle-switch {
  width: 46px;
  height: 26px;
  background: var(--input-bg);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background 0.22s var(--ease-out);
  border: 1px solid var(--border-subtle);
}

.toggle-switch.on {
  background: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.22s var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.toggle-switch.on::after {
  transform: translateX(20px);
}

.settings-slider {
  width: 200px;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--input-bg);
  outline: none;
}

.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 10px var(--accent-glow);
  transition: transform 0.12s;
}

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

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

.wallpaper-option {
  height: 72px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s var(--ease-out);
}

.wallpaper-option:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.wallpaper-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}

.accent-colors {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.accent-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s var(--ease-spring);
}

.accent-color:hover {
  transform: scale(1.15);
}

.accent-color.active {
  border-color: #ecfdf5;
  border-width: 3px;
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* === APP: CALENDAR === */
.calendar-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-glass);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-glass-heavy);
}

.calendar-header h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

.calendar-header button {
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  transition: all 0.12s;
}

.calendar-header button:hover {
  background: var(--surface-active);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 12px;
  background: var(--surface-glass-heavy);
  border-bottom: 1px solid var(--border-subtle);
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px 12px;
  flex: 1;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 40px;
  gap: 4px;
  transition: all 0.12s;
}

.calendar-day:hover {
  background: var(--file-hover);
}

.calendar-day.today {
  background: var(--accent);
  color: #040605;
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-glow);
}

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

.calendar-day .day-num {
  font-size: 12.5px;
}

.calendar-day .event-dots {
  display: flex;
  gap: 3px;
}

.calendar-day .event-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.calendar-day.today .event-dot {
  background: #040605;
}

.calendar-events {
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px;
  max-height: 120px;
  overflow-y: auto;
  background: var(--surface-glass-heavy);
}

.calendar-event {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid var(--accent);
  margin-bottom: 6px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  background: var(--accent-bg);
}

/* === SPOTLIGHT SEARCH MODAL === */
#spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
}

#spotlight-modal {
  width: 580px;
  max-width: 92vw;
  background: var(--spotlight-bg);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  animation: spotlightOpen 0.2s var(--ease-out);
}

@keyframes spotlightOpen {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

#spotlight-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 17px;
  font-family: var(--font-sans);
  outline: none;
}

#spotlight-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

#spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}

.spotlight-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.1s var(--ease-out);
}

.spotlight-result:hover, .spotlight-result.selected {
  background: var(--accent);
  color: #040605;
}

.spotlight-result svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.spotlight-result .result-text {
  flex: 1;
}

.spotlight-result .result-name {
  font-size: 13.5px;
  font-weight: 600;
}

.spotlight-result .result-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.spotlight-result:hover .result-desc {
  color: rgba(4, 6, 5, 0.85);
}

.spotlight-section {
  padding: 6px 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* === MISSION CONTROL === */
#mission-control {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(2, 4, 3, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 60px 40px;
  flex-wrap: wrap;
  animation: mcOpen 0.22s var(--ease-out);
}

@keyframes mcOpen {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.mc-window {
  background: var(--window-bg);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  overflow: hidden;
  max-width: 380px;
  min-width: 240px;
  transition: all 0.18s var(--ease-out);
}

.mc-window:hover {
  border-color: var(--accent);
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--accent), 0 0 20px var(--accent-glow);
}

.mc-window .mc-title {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--window-titlebar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-window .mc-preview {
  height: 170px;
  background: var(--surface-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* === NOTIFICATIONS === */
#notification-container {
  position: fixed;
  top: 40px;
  right: 12px;
  z-index: 9600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: var(--notification-bg);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-width: 310px;
  max-width: 360px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.12);
  pointer-events: auto;
  animation: notifIn 0.28s var(--ease-spring);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.15s;
}

.notification:hover {
  transform: translateY(-2px);
}

.notification.removing {
  animation: notifOut 0.25s var(--ease-out) forwards;
}

@keyframes notifIn {
  from { opacity: 0; transform: translateX(50px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes notifOut {
  to { opacity: 0; transform: translateX(50px) scale(0.9); }
}

.notification svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.notification .notif-content {
  flex: 1;
}

.notification .notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.notification .notif-body {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.notification .notif-time {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* === ACCESSIBILITY & SCROLLBAR === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}