: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);
}

* {
  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.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  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);
}

/* 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);
}

/* Loading bar shimmer */
@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;
}

/* Subtle toast animation */
@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;
}
