/* ============================================
   macOS Web - Complete Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --menu-bar-height: 28px;
  --dock-height: 65px;
  --dock-icon-size: 48px;
  --window-radius: 10px;
  --window-titlebar-height: 38px;
  --accent-color: #007aff;
  --window-bg: #1e1e1e;
  --window-titlebar-bg: #2d2d2d;
  --window-border: rgba(255,255,255,0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --sidebar-bg: rgba(30,30,30,0.95);
  --dock-bg: rgba(40,40,40,0.65);
  --dock-border: rgba(255,255,255,0.15);
  --menu-bar-bg: rgba(30,30,30,0.78);
  --context-bg: rgba(40,40,40,0.95);
  --hover-bg: rgba(255,255,255,0.1);
  --active-bg: var(--accent-color);
  --shadow-lg: 0 22px 70px 4px rgba(0,0,0,0.56), 0 0 0 0.5px rgba(0,0,0,0.28);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(0,0,0,0.2);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  background: #000;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

input, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Utility Classes --- */
.hidden { display: none !important; }

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

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

.boot-logo {
  margin-bottom: 40px;
  animation: boot-pulse 2s ease-in-out infinite;
}

@keyframes boot-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.boot-progress {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* --- Login Screen --- */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080"><defs><linearGradient id="g" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" stop-color="%231a0533"/><stop offset="30%25" stop-color="%230d1b3e"/><stop offset="60%25" stop-color="%231b2838"/><stop offset="100%25" stop-color="%230a1628"/></linearGradient></defs><rect fill="url(%23g)" width="1920" height="1080"/></svg>') center/cover;
  transition: opacity 0.5s ease;
}

#login-screen.fade-out { opacity: 0; }

.login-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  background: rgba(0,0,0,0.3);
}

.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-avatar {
  margin-bottom: 8px;
}

.login-username {
  font-size: 18px;
  font-weight: 500;
  color: white;
}

.login-password-wrapper {
  display: flex;
  align-items: center;
  width: 200px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0 12px;
  gap: 8px;
}

.login-icon { flex-shrink: 0; }

.login-password-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 13px;
}

.login-password-wrapper input::placeholder {
  color: rgba(255,255,255,0.5);
}

.login-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.login-datetime {
  position: absolute;
  top: 60px;
  text-align: center;
  z-index: 1;
}

#login-time {
  font-size: 64px;
  font-weight: 200;
  color: white;
  line-height: 1;
}

#login-date {
  font-size: 20px;
  font-weight: 400;
  color: white;
  margin-top: 4px;
}

/* --- Desktop --- */
#desktop {
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080"><defs><linearGradient id="g1" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" stop-color="%23667eea"/><stop offset="25%25" stop-color="%23764ba2"/><stop offset="50%25" stop-color="%23f093fb"/><stop offset="75%25" stop-color="%23f5576c"/><stop offset="100%25" stop-color="%234facfe"/></linearGradient><linearGradient id="g2" x1="100%25" y1="0%25" x2="0%25" y2="100%25"><stop offset="0%25" stop-color="%2343e97b" stop-opacity="0.3"/><stop offset="100%25" stop-color="%2338f9d7" stop-opacity="0.1"/></linearGradient></defs><rect fill="url(%23g1)" width="1920" height="1080"/><rect fill="url(%23g2)" width="1920" height="1080"/></svg>') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* --- Menu Bar --- */
#menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--menu-bar-height);
  background: var(--menu-bar-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 9999;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

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

.menu-apple {
  padding: 0 8px;
  cursor: pointer;
  border-radius: 4px;
  height: 100%;
  display: flex;
  align-items: center;
}

.menu-apple:hover { background: rgba(255,255,255,0.15); }

.menu-app-name {
  font-weight: 600;
  font-size: 13px;
  padding: 0 8px;
  cursor: default;
}

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

.menu-item {
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.menu-item:hover { background: rgba(255,255,255,0.15); }

.menu-right {
  gap: 1px;
}

.menu-icon {
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.menu-icon:hover { background: rgba(255,255,255,0.15); }

.menu-clock {
  padding: 2px 8px;
  text-align: right;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1.2;
}

.menu-clock:hover { background: rgba(255,255,255,0.15); }

#menu-clock-time {
  font-size: 13px;
  font-weight: 500;
}

#menu-clock-date {
  font-size: 11px;
  color: var(--text-secondary);
}

/* --- Desktop Icons --- */
#desktop-icons {
  position: absolute;
  top: calc(var(--menu-bar-height) + 10px);
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  gap: 4px;
}

.desktop-icon:hover { background: rgba(255,255,255,0.1); }
.desktop-icon.selected { background: rgba(0,122,255,0.35); }

.desktop-icon-img {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border-radius: 12px;
}

.desktop-icon-label {
  font-size: 11px;
  text-align: center;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  line-height: 1.2;
  word-break: break-word;
}

/* --- Windows --- */
#windows-container {
  position: absolute;
  top: var(--menu-bar-height);
  left: 0;
  right: 0;
  bottom: 0;
}

.window {
  position: absolute;
  background: var(--window-bg);
  border-radius: var(--window-radius);
  box-shadow: var(--shadow-lg);
  border: 0.5px solid var(--window-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 300px;
  min-height: 200px;
  transition: box-shadow var(--transition-fast);
}

.window.focused {
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.window:not(.focused) {
  box-shadow: var(--shadow-md);
}

.window.minimizing {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform: scale(0.1) translateY(100vh);
  opacity: 0;
}

.window.opening {
  animation: window-open 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes window-open {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.window.maximized {
  border-radius: 0 !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Window Titlebar */
.window-titlebar {
  height: var(--window-titlebar-height);
  background: var(--window-titlebar-bg);
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: default;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  position: relative;
}

.window-controls {
  display: flex;
  gap: 8px;
  z-index: 2;
}

.window-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: transparent;
  padding: 0;
  line-height: 1;
  transition: all 0.1s;
}

.window:not(.focused) .window-btn {
  background: rgba(255,255,255,0.15) !important;
  color: transparent !important;
}

.window-btn-close { background: #ff5f57; }
.window-btn-minimize { background: #febc2e; }
.window-btn-maximize { background: #28c840; }

.focused .window-btn:hover { color: rgba(0,0,0,0.6); }
.window-btn-close:hover { background: #ff3b30 !important; }
.window-btn-minimize:hover { background: #f5a623 !important; }
.window-btn-maximize:hover { background: #1db954 !important; }

.window-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  color: var(--text-primary);
}

.window:not(.focused) .window-title {
  color: var(--text-secondary);
}

.window-titlebar-icon {
  margin-right: 6px;
  font-size: 14px;
  flex-shrink: 0;
}

/* Window Content */
.window-content {
  flex: 1;
  overflow: auto;
  position: relative;
}

/* Resize Handles */
.resize-handle {
  position: absolute;
  z-index: 10;
}

.resize-handle-n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.resize-handle-s { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.resize-handle-e { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: e-resize; }
.resize-handle-w { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: w-resize; }
.resize-handle-ne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: ne-resize; }
.resize-handle-nw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nw-resize; }
.resize-handle-se { bottom: -3px; right: -3px; width: 14px; height: 14px; cursor: se-resize; }
.resize-handle-sw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: sw-resize; }

/* --- Dock --- */
#dock-container {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  z-index: 9998;
  padding: 0 4px;
}

.dock-separator {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  margin: 0 4px;
  align-self: center;
}

#dock {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  background: var(--dock-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 0.5px solid var(--dock-border);
  border-radius: 16px;
  padding: 4px 8px;
  height: auto;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
}

.dock-icon {
  width: var(--dock-icon-size);
  height: var(--dock-icon-size);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.15s ease;
  position: relative;
}

.dock-item:hover .dock-icon {
  transform: scale(1.3) translateY(-8px);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-8px);
}

.dock-tooltip {
  position: absolute;
  top: -32px;
  background: rgba(40,40,40,0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
  border: 0.5px solid rgba(255,255,255,0.15);
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.dock-dot.active { opacity: 1; }

.dock-item.bouncing .dock-icon {
  animation: dock-bounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dock-bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-28px); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-16px); }
  80% { transform: translateY(-2px); }
}

/* --- Spotlight --- */
#spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99990;
  display: flex;
  justify-content: center;
  padding-top: 20vh;
}

#spotlight {
  width: 680px;
  max-height: 400px;
  background: rgba(40,40,40,0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 12px;
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: spotlight-in 0.15s ease;
}

@keyframes spotlight-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotlight-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

#spotlight-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 20px;
  color: white;
  font-weight: 300;
}

#spotlight-input::placeholder { color: rgba(255,255,255,0.35); }

#spotlight-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
}

.spotlight-result {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 10px;
  cursor: pointer;
  transition: background 0.1s;
}

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

.spotlight-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.spotlight-result-info {
  flex: 1;
  min-width: 0;
}

.spotlight-result-name {
  font-size: 13px;
  font-weight: 500;
}

.spotlight-result-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.spotlight-result:hover .spotlight-result-sub { color: rgba(255,255,255,0.7); }

/* --- Context Menu --- */
#context-menu {
  position: fixed;
  min-width: 220px;
  background: var(--context-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 8px;
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  z-index: 99999;
  animation: context-in 0.12s ease;
}

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

.ctx-item {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  gap: 10px;
}

.ctx-item:hover { background: var(--accent-color); }

.ctx-item .ctx-shortcut {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 12px;
}

.ctx-item:hover .ctx-shortcut { color: rgba(255,255,255,0.7); }

.ctx-separator {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 4px 8px;
}

.ctx-item.disabled {
  color: var(--text-secondary);
  pointer-events: none;
}

/* --- Dropdown Menus (Menu Bar) --- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--context-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 8px;
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  z-index: 99999;
  animation: context-in 0.12s ease;
}

/* --- Notification Center --- */
#notification-center {
  position: fixed;
  top: var(--menu-bar-height);
  right: 0;
  width: 360px;
  bottom: 0;
  background: rgba(30,30,30,0.85);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  z-index: 9990;
  border-left: 0.5px solid rgba(255,255,255,0.1);
  overflow-y: auto;
  padding: 16px;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

#notification-center.hidden {
  transform: translateX(100%);
}

.nc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nc-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.nc-clear-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 12px;
}

.nc-notification {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  animation: slide-in-right 0.3s ease;
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.nc-notif-app {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

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

.nc-notif-body {
  font-size: 12px;
  color: var(--text-secondary);
}

.nc-notif-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Control Center --- */
#control-center {
  position: fixed;
  top: 36px;
  right: 8px;
  width: 320px;
  background: rgba(40,40,40,0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 14px;
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
  z-index: 99995;
  padding: 12px;
  animation: cc-in 0.2s ease;
}

@keyframes cc-in {
  from { opacity: 0; transform: scale(0.95) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-tile {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
}

.cc-tile.cc-connectivity {
  grid-column: 1 / -1;
}

.cc-tile-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cc-tile-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cc-tile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}

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

.cc-tile-item.active {
  background: var(--accent-color);
}

.cc-tile-item.active span { color: white; }

.cc-tile-item span {
  font-size: 11px;
  color: var(--text-primary);
}

.cc-status {
  font-size: 10px !important;
  color: var(--text-secondary) !important;
}

.cc-tile-item.active .cc-status { color: rgba(255,255,255,0.7) !important; }

.cc-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  outline: none;
}

.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cc-music {
  flex-direction: row !important;
  gap: 10px !important;
}

.cc-music-art {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cc-music-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-music-title { font-size: 12px; font-weight: 500; }
.cc-music-artist { font-size: 11px; color: var(--text-secondary); }

.cc-focus-modes {
  display: flex;
  gap: 6px;
}

.cc-focus-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.cc-focus-item:hover { background: rgba(255,255,255,0.08); }
.cc-focus-item.active { background: var(--accent-color); }

.cc-focus-item span:first-child { font-size: 18px; }
.cc-focus-item span:last-child { font-size: 10px; text-align: center; line-height: 1.2; }

.cc-bottom {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.cc-bottom .cc-tile-item {
  flex-direction: row;
  flex: 1;
  padding: 10px;
  gap: 8px;
  justify-content: center;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

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

/* --- Finder --- */
.finder-container {
  display: flex;
  height: 100%;
}

.finder-sidebar {
  width: 180px;
  background: rgba(30,30,30,0.95);
  border-right: 0.5px solid rgba(255,255,255,0.08);
  padding: 8px 0;
  flex-shrink: 0;
  overflow-y: auto;
}

.finder-sidebar-section {
  margin-bottom: 12px;
}

.finder-sidebar-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px;
}

.finder-sidebar-item {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  margin: 1px 8px;
  font-size: 13px;
}

.finder-sidebar-item:hover { background: rgba(255,255,255,0.08); }
.finder-sidebar-item.active { background: var(--accent-color); }

.finder-sidebar-icon { font-size: 16px; }

.finder-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.finder-toolbar {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  background: rgba(40,40,40,0.5);
}

.finder-toolbar-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.finder-toolbar-btn:hover { background: rgba(255,255,255,0.15); color: white; }

.finder-path {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.finder-view-toggle {
  display: flex;
  gap: 2px;
}

.finder-view-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.finder-view-btn.active { background: rgba(255,255,255,0.15); color: white; }

.finder-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.finder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  gap: 4px;
}

.finder-item:hover { background: rgba(255,255,255,0.06); }
.finder-item.selected { background: rgba(0,122,255,0.3); }

.finder-item-icon {
  font-size: 42px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finder-item-name {
  font-size: 11px;
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
}

.finder-list {
  display: flex;
  flex-direction: column;
}

.finder-list-header {
  display: grid;
  grid-template-columns: 1fr 100px 100px 120px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: var(--window-bg);
}

.finder-list-item {
  display: grid;
  grid-template-columns: 1fr 100px 100px 120px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.finder-list-item:hover { background: rgba(255,255,255,0.06); }
.finder-list-item.selected { background: rgba(0,122,255,0.3); }

.finder-status-bar {
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 0.5px solid rgba(255,255,255,0.05);
  background: rgba(40,40,40,0.5);
}

/* --- Terminal --- */
.terminal-container {
  background: rgba(0,0,0,0.92);
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
}

.terminal-tabs {
  display: flex;
  background: rgba(30,30,30,0.9);
  padding: 4px 4px 0;
  gap: 1px;
}

.terminal-tab {
  padding: 4px 12px;
  background: rgba(50,50,50,0.8);
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-tab.active { background: rgba(0,0,0,0.92); }

.terminal-output {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

.terminal-line { margin-bottom: 2px; }
.terminal-line-output { color: #d4d4d4; }
.terminal-line-error { color: #ff6b6b; }
.terminal-line-success { color: #69db7c; }
.terminal-line-info { color: #74c0fc; }
.terminal-line-welcome { color: #ffd43b; }

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

.terminal-prompt {
  color: #69db7c;
  margin-right: 8px;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #d4d4d4;
  font-family: inherit;
  font-size: inherit;
  caret-color: #d4d4d4;
}

/* --- Calculator --- */
.calculator-container {
  background: #1c1c1c;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.calc-display {
  padding: 10px 20px;
  text-align: right;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.calc-expression {
  font-size: 16px;
  color: var(--text-secondary);
  min-height: 20px;
}

.calc-result {
  font-size: 42px;
  font-weight: 200;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.calc-btn {
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  font-family: inherit;
}

.calc-btn-number {
  background: #333;
  color: white;
}

.calc-btn-number:hover { background: #444; }
.calc-btn-number:active { background: #555; }

.calc-btn-operator {
  background: #ff9f0a;
  color: white;
  font-size: 24px;
}

.calc-btn-operator:hover { background: #ffb340; }
.calc-btn-operator:active { background: #ffc566; }
.calc-btn-operator.active-op { background: white; color: #ff9f0a; }

.calc-btn-function {
  background: #a5a5a5;
  color: #1c1c1c;
}

.calc-btn-function:hover { background: #b5b5b5; }
.calc-btn-function:active { background: #c5c5c5; }

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

/* --- Notes --- */
.notes-container {
  display: flex;
  height: 100%;
}

.notes-sidebar {
  width: 200px;
  background: rgba(30,30,30,0.95);
  border-right: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}

.notes-sidebar-header {
  padding: 10px 12px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notes-sidebar-header h3 {
  font-size: 13px;
  font-weight: 600;
}

.notes-new-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 4px;
}

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

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

.notes-list-item {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2px;
}

.notes-list-item:hover { background: rgba(255,255,255,0.06); }
.notes-list-item.active { background: var(--accent-color); }

.notes-list-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes-list-preview {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes-list-item.active .notes-list-preview { color: rgba(255,255,255,0.7); }

.notes-list-date {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.notes-list-item.active .notes-list-date { color: rgba(255,255,255,0.7); }

.notes-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notes-editor-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  padding: 12px;
  resize: none;
  line-height: 1.6;
}

.notes-editor-footer {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 0.5px solid rgba(255,255,255,0.05);
}

/* --- TextEdit --- */
.textedit-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.textedit-toolbar {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 2px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  background: rgba(40,40,40,0.5);
  flex-wrap: wrap;
}

.textedit-toolbar-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  min-width: 28px;
  text-align: center;
}

.textedit-toolbar-btn:hover { background: rgba(255,255,255,0.1); }
.textedit-toolbar-btn.active { background: var(--accent-color); border-color: var(--accent-color); }

.textedit-toolbar-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  margin: 0 4px;
}

.textedit-content {
  flex: 1;
  padding: 20px;
  outline: none;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.textedit-status {
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 0.5px solid rgba(255,255,255,0.05);
}

/* --- Safari --- */
.safari-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.safari-toolbar {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  background: rgba(40,40,40,0.8);
}

.safari-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
}

.safari-nav-btn:hover { background: rgba(255,255,255,0.1); color: white; }

.safari-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 5px 12px;
  gap: 6px;
}

.safari-url-bar svg { flex-shrink: 0; }

.safari-url-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 13px;
  text-align: center;
}

.safari-url-input::placeholder { color: var(--text-secondary); }

.safari-content {
  flex: 1;
  position: relative;
  background: white;
}

.safari-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.safari-start-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: rgba(30,30,30,1);
  padding: 40px;
}

.safari-start-title {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.safari-favorites {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 500px;
}

.safari-fav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
}

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

.safari-fav-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.safari-fav-name {
  font-size: 11px;
  color: var(--text-secondary);
}

/* --- Calendar --- */
.calendar-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-nav-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav-btn:hover { background: rgba(255,255,255,0.15); }

.calendar-month-year {
  font-size: 16px;
  font-weight: 600;
}

.calendar-today-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

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

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

.calendar-day-header {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px;
  font-weight: 500;
}

.calendar-day {
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.calendar-day:hover { background: rgba(255,255,255,0.06); }
.calendar-day.other-month { color: rgba(255,255,255,0.2); }
.calendar-day.today { background: var(--accent-color); font-weight: 600; }
.calendar-day.selected { outline: 2px solid var(--accent-color); }

/* --- System Preferences --- */
.sysprefs-container {
  display: flex;
  height: 100%;
}

.sysprefs-sidebar {
  width: 220px;
  background: rgba(30,30,30,0.95);
  border-right: 0.5px solid rgba(255,255,255,0.08);
  padding: 12px 8px;
  overflow-y: auto;
}

.sysprefs-search {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 10px;
  color: white;
  font-size: 12px;
  outline: none;
  margin-bottom: 12px;
}

.sysprefs-search::placeholder { color: var(--text-secondary); }

.sysprefs-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 1px;
}

.sysprefs-item:hover { background: rgba(255,255,255,0.06); }
.sysprefs-item.active { background: var(--accent-color); }

.sysprefs-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sysprefs-item-label {
  font-size: 13px;
}

.sysprefs-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.sysprefs-panel-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sysprefs-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin-bottom: 8px;
}

.sysprefs-option-label {
  font-size: 13px;
}

.sysprefs-option-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
  width: 40px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

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

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch.active::after { transform: translateX(16px); }

/* --- Photos --- */
.photos-container {
  display: flex;
  height: 100%;
}

.photos-sidebar {
  width: 180px;
  background: rgba(30,30,30,0.95);
  border-right: 0.5px solid rgba(255,255,255,0.08);
  padding: 8px 0;
}

.photos-sidebar-item {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  margin: 1px 8px;
  font-size: 13px;
}

.photos-sidebar-item:hover { background: rgba(255,255,255,0.08); }
.photos-sidebar-item.active { background: var(--accent-color); }

.photos-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.photos-toolbar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}

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

.photo-item {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  transition: transform 0.15s;
}

.photo-item:hover { transform: scale(1.02); }

/* --- Music --- */
.music-container {
  display: flex;
  height: 100%;
}

.music-sidebar {
  width: 200px;
  background: rgba(20,20,20,0.95);
  border-right: 0.5px solid rgba(255,255,255,0.08);
  padding: 12px 0;
}

.music-sidebar-item {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.music-sidebar-item:hover { background: rgba(255,255,255,0.06); }
.music-sidebar-item.active { background: rgba(255,255,255,0.12); }

.music-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.music-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.music-album-art {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  flex-shrink: 0;
}

.music-album-info h2 {
  font-size: 20px;
  font-weight: 600;
}

.music-album-info p {
  color: var(--text-secondary);
  font-size: 13px;
}

.music-track-list {
  list-style: none;
}

.music-track {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  gap: 12px;
}

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

.music-track-num {
  width: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.music-track-info { flex: 1; }
.music-track-title { font-size: 13px; }
.music-track-artist { font-size: 11px; color: var(--text-secondary); }
.music-track-duration { font-size: 12px; color: var(--text-secondary); }

.music-player-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 16px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
  background: rgba(30,30,30,0.95);
}

.music-player-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-player-art {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.music-player-text { min-width: 0; }
.music-player-title { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-player-artist { font-size: 11px; color: var(--text-secondary); }

.music-player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-player-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
}

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

.music-player-btn.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.music-progress {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-progress-time {
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 35px;
  text-align: center;
}

.music-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.music-progress-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  width: 33%;
  transition: width 0.1s;
}

.music-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 120px;
}

.music-volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
}

.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/* --- Reminders --- */
.reminders-container {
  display: flex;
  height: 100%;
}

.reminders-sidebar {
  width: 200px;
  background: rgba(30,30,30,0.95);
  border-right: 0.5px solid rgba(255,255,255,0.08);
  padding: 8px 0;
}

.reminders-sidebar-item {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  margin: 1px 8px;
  font-size: 13px;
}

.reminders-sidebar-item:hover { background: rgba(255,255,255,0.08); }
.reminders-sidebar-item.active { background: var(--accent-color); }

.reminders-sidebar-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-secondary);
}

.reminders-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reminders-toolbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}

.reminders-add-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 20px;
  padding: 2px 8px;
  border-radius: 4px;
}

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

.reminders-add-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 12px;
  color: white;
  font-size: 13px;
  outline: none;
}

.reminders-add-input::placeholder { color: var(--text-secondary); }

.reminders-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.reminder-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  gap: 10px;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}

.reminder-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.reminder-checkbox:hover { border-color: var(--accent-color); }

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

.reminder-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
}

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

.reminder-text.completed {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.reminder-delete {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.reminder-item:hover .reminder-delete { opacity: 1; }
.reminder-delete:hover { background: rgba(255,255,255,0.1); color: #ff4444; }

/* --- Weather --- */
.weather-container {
  height: 100%;
  background: linear-gradient(180deg, #1a3a5c 0%, #2d5a87 40%, #4a8ab5 100%);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.weather-main-display {
  text-align: center;
  margin-bottom: 20px;
}

.weather-city {
  font-size: 24px;
  font-weight: 400;
}

.weather-current-temp {
  font-size: 64px;
  font-weight: 200;
  line-height: 1;
  margin: 8px 0;
}

.weather-condition {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.weather-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 12px 0;
  font-size: 13px;
}

.weather-icon {
  font-size: 48px;
  margin: 8px 0;
}

.weather-forecast {
  display: flex;
  gap: 4px;
  margin-top: auto;
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 12px;
}

.weather-forecast-day {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 12px;
}

.weather-forecast-day .day-name { color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.weather-forecast-day .day-icon { font-size: 24px; margin: 4px 0; }
.weather-forecast-day .day-temps { display: flex; gap: 8px; justify-content: center; }
.weather-forecast-day .temp-high { font-weight: 500; }
.weather-forecast-day .temp-low { color: rgba(255,255,255,0.5); }

/* --- About This Mac --- */
.about-mac {
  text-align: center;
  padding: 30px;
}

.about-mac-logo {
  font-size: 64px;
  margin-bottom: 12px;
}

.about-mac-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-mac-version {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-mac-specs {
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.about-mac-spec {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  font-size: 12px;
}

.about-mac-spec-label { color: var(--text-secondary); }
.about-mac-spec-value { color: white; }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- Selection --- */
::selection {
  background: var(--accent-color);
  color: white;
}

/* --- Wallpaper Options --- */
.wallpaper-preview {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}

.wallpaper-preview:hover { border-color: rgba(255,255,255,0.3); }
.wallpaper-preview.active { border-color: var(--accent-color); }

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