:root {
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --bg-base: #090b10;
  --bg-surface: #11151f;
  --bg-elevated: #171c2b;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

[data-theme="violet"] {
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.25);
}

[data-theme="amber"] {
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.25);
}

[data-theme="cyan"] {
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.25);
}

[data-theme="rose"] {
  --accent: #f43f5e;
  --accent-hover: #e11d48;
  --accent-glow: rgba(244, 63, 94, 0.28);
}

[data-theme="crimson"] {
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --accent-glow: rgba(239, 68, 68, 0.28);
  --bg-base: #0d0709;
  --bg-surface: #180d10;
}

[data-theme="ocean"] {
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.28);
  --bg-base: #060b16;
  --bg-surface: #0d1628;
}

[data-theme="sunset"] {
  --accent: #fb923c;
  --accent-hover: #f97316;
  --accent-glow: rgba(251, 146, 60, 0.28);
  --bg-base: #120907;
  --bg-surface: #1e110d;
}

[data-theme="lime"] {
  --accent: #84cc16;
  --accent-hover: #65a30d;
  --accent-glow: rgba(132, 204, 22, 0.28);
  --bg-base: #070d06;
  --bg-surface: #101b0e;
}

[data-theme="gold"] {
  --accent: #eab308;
  --accent-hover: #ca8a04;
  --accent-glow: rgba(234, 179, 8, 0.3);
  --bg-base: #0d0b05;
  --bg-surface: #181409;
}

[data-theme="lavender"] {
  --accent: #c084fc;
  --accent-hover: #a855f7;
  --accent-glow: rgba(192, 132, 252, 0.28);
  --bg-base: #0b0714;
  --bg-surface: #160f24;
}

[data-theme="midnight"] {
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --bg-base: #030712;
  --bg-surface: #0b1120;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-base);
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  user-select: none;
}

.accent-bg {
  background-color: var(--accent);
}
.accent-bg:hover {
  background-color: var(--accent-hover);
}
.accent-text {
  color: var(--accent);
}
.accent-border {
  border-color: var(--accent);
}
.accent-ring:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-glow), 0 0 0 1px var(--accent);
}

.glass-panel {
  background: rgba(17, 21, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
}

.tab-pill {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab-pill.active {
  background-color: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.tab-pill:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn {
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.nav-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.nav-btn:active:not(:disabled) {
  transform: scale(0.94);
}
.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.proxy-frame {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #ffffff;
}

.speed-dial-card {
  background: rgba(23, 28, 43, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.speed-dial-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}

/* Home custom background layer */
#home-view {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Collapsible search bar */
.toolbar-collapsed {
  display: none !important;
}

/* Custom sleek scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

@keyframes progressPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}
.loading-bar-active::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: progressPulse 1.1s infinite linear;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-item {
  animation: toastIn 0.2s ease forwards;
}
