/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light mode colors */
  --bg-primary: #fcfbf8;
  --bg-secondary: #ffffff;
  --text-primary: #1e1b4b;
  --text-secondary: #4c1d95;
  --border-color: #e0e0e0;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --error-color: #ef4444;
  --success-color: #10b981;

  /* Transitions */
  --transition: all 0.2s ease;
}

[data-theme="dark"] {
  --bg-primary: #1c1c1c;
  --bg-secondary: #2a2a2a;
  --text-primary: #fcfbf8;
  --text-secondary: #a0a0a0;
  --border-color: #404040;
  --accent-color: #60a5fa;
  --accent-hover: #3b82f6;
}

html {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  transition: var(--transition);
  scroll-behavior: smooth;
}

/* Grain Texture Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Animated Sound Wave Background */
.sound-wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sound-wave-bg::before,
.sound-wave-bg::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(ellipse at center,
    transparent 0%,
    transparent 30%,
    rgba(255, 20, 147, 0.03) 35%,
    rgba(255, 107, 53, 0.04) 40%,
    rgba(0, 217, 255, 0.03) 50%,
    rgba(14, 165, 233, 0.04) 60%,
    rgba(30, 58, 138, 0.03) 70%,
    transparent 80%);
  animation: soundWave 90s ease-in-out infinite;
}

.sound-wave-bg::after {
  animation: soundWave 120s ease-in-out infinite reverse;
  background: radial-gradient(ellipse at center,
    transparent 0%,
    transparent 25%,
    rgba(0, 217, 255, 0.04) 30%,
    rgba(255, 107, 53, 0.03) 45%,
    rgba(255, 20, 147, 0.04) 55%,
    rgba(14, 165, 233, 0.03) 65%,
    transparent 75%);
}

@keyframes soundWave {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: scale(1.1) rotate(120deg);
    opacity: 0.8;
  }
  66% {
    transform: scale(0.9) rotate(240deg);
    opacity: 0.7;
  }
}

/* Password Gate */
.password-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.password-gate-content {
  max-width: 450px;
  width: 100%;
}

.password-gate-logo {
  text-align: center;
  margin-bottom: 3rem;
}

.password-gate-logo .logo-text {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg,
    rgb(255, 20, 147) 0%,
    rgb(255, 107, 53) 20%,
    rgb(0, 217, 255) 40%,
    rgb(14, 165, 233) 60%,
    rgb(30, 58, 138) 80%,
    rgb(255, 20, 147) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: headerShimmer 20s ease-in-out infinite;
  margin: 0 0 1rem 0;
  line-height: 1;
}

.password-gate-logo .tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.password-gate-form {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.password-gate-form::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg,
    rgb(255, 20, 147),
    rgb(255, 107, 53),
    rgb(0, 217, 255),
    rgb(14, 165, 233),
    rgb(30, 58, 138));
  border-radius: 12px;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.password-gate-form h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.password-hint {
  margin: 0 0 1.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.password-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.password-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-error {
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid #ff1493;
  color: #ff1493;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  animation: errorPulse 0.4s ease-out;
  position: relative;
  z-index: 1;
}

.password-submit {
  width: 100%;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  background: var(--accent-color);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  position: relative;
  z-index: 1;
}

.password-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Backend Warning */
.backend-warning {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 20, 147, 0.1) 100%);
  border: 2px solid rgba(255, 107, 53, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 900px;
  box-shadow:
    0 0 20px rgba(255, 107, 53, 0.2),
    inset 0 0 30px rgba(255, 107, 53, 0.05);
  animation: fadeIn 0.5s ease-in-out;
  position: relative;
  z-index: 100;
}

.backend-warning-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.backend-warning-content .warning-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: rgb(255, 107, 53);
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.backend-warning-content p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.backend-warning-content strong {
  color: rgb(255, 107, 53);
  font-weight: 600;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 20;
}

/* Container adjustments for sidebar layout */
.main-with-sidebar .container {
  max-width: 1100px;
  padding: 3rem;
}

/* Sidebar Navigation - Dark with Text Labels */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
  border-right: 1px solid #1f1f1f;
}

.sidebar-logo {
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-logo-text-container {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.sidebar-tagline {
  display: none;
}

/* Sidebar Account Profile */
.sidebar-account {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid #1f1f1f;
  opacity: 1;
  pointer-events: auto;
}

/* Account profile in footer */
.sidebar-footer .sidebar-account {
  padding: 0;
  border-bottom: none;
}

.sidebar-footer #sidebarAccount {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.sidebar-footer #sidebarAccount:hover {
  background: #222;
  border-color: #c4b5fd;
}

.sidebar-account.hidden {
  opacity: 0;
  pointer-events: none;
}

.sidebar-account.shimmer .sidebar-account-link {
  position: relative;
  overflow: hidden;
}

.sidebar-account.shimmer .sidebar-account-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.sidebar-account-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-account-link:hover {
  background: #222;
  border-color: #c4b5fd;
}

.sidebar-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(222.05deg, #F09965 2.83%, #F415AB 108.26%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-account-info {
  flex: 1;
  min-width: 0;
}

.sidebar-account-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-account-email {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-top: 1px solid #1f1f1f;
}

.sidebar-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #888;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 8px;
  position: relative;
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.sidebar-nav-item:hover {
  color: #fff;
  background: #1a1a1a;
}

.sidebar-nav-item.active {
  color: #0f0f0f;
  background: #c4b5fd;
  font-weight: 600;
}

.sidebar-nav-item.active svg {
  color: #0f0f0f;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #1f1f1f;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sidebar-footer-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #888;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 8px;
}

.sidebar-footer-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.sidebar-footer-item:hover {
  color: #fff;
  background: #1a1a1a;
}

.sidebar-footer-item.active {
  color: #fff;
  background: #1a1a1a;
}

.theme-toggle-text {
  display: inline;
}

.hamburger-button {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: linear-gradient(135deg, #FCB045 0%, #FD1D1D 50%, #9900FF 100%);
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.main-with-sidebar {
  margin-left: 220px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Account Bar - Hidden */
.top-account-bar {
  display: none;
}

/* Main content without top bar */
.main-with-sidebar .container {
  margin-top: 0;
  padding-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger-button {
    display: block;
  }

  .main-with-sidebar {
    margin-left: 0;
  }
}

/* Header (legacy - will be hidden when sidebar is used) */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0 5rem 0;
  position: relative;
  width: 100%;
  margin-bottom: -2rem;
  background: linear-gradient(135deg, #c4b5fd 0%, #ddd6fe 50%, #e9d5ff 100%);
  z-index: 10;
}

.header-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.logo-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: flex-start;
}

.logo-text {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1e1b4b;
  margin: 0;
  line-height: 50px;
  height: 50px;
}

@keyframes headerShimmer {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
}

.tagline {
  font-size: 0.875rem;
  font-weight: 400;
  color: #4c1d95;
  margin: 0;
  line-height: 1.3;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav-link {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
  white-space: nowrap;
}

.header-nav-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: #1e1b4b;
}

.theme-toggle:hover svg {
  color: #1e1b4b;
}

.sun-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* Logout Button */
.logout-button {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  height: 40px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e1b4b;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.logout-button svg {
  width: 18px;
  height: 18px;
  color: #1e1b4b;
}

/* Form Sections */
.form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg,
    rgb(196, 181, 253),
    rgb(167, 139, 250),
    rgb(139, 92, 246),
    rgb(124, 58, 237),
    rgb(109, 40, 217));
  border-radius: 12px;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.form-section:hover::before,
.form-section:focus-within::before {
  opacity: 1;
}

[data-theme="light"] .form-section:hover::before,
[data-theme="light"] .form-section:focus-within::before {
  opacity: 0;
}

.form-section:hover,
.form-section:focus-within {
  border-color: transparent;
}

[data-theme="light"] .form-section:hover,
[data-theme="light"] .form-section:focus-within {
  border-color: rgba(0, 0, 0, 0.2);
}

.form-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.05), rgba(167, 139, 250, 0.05), rgba(139, 92, 246, 0.05), rgba(124, 58, 237, 0.05), rgba(109, 40, 217, 0.05));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.form-section:hover::after,
.form-section:focus-within::after {
  opacity: 1;
  animation: shimmerMove 8s ease-in-out infinite;
}

@keyframes shimmerMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.form-section > * {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Collapsible section header */
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.collapsible-header .collapse-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.collapsible-header.collapsed .collapse-arrow {
  transform: rotate(-90deg);
}

.section-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group:last-child {
  margin-bottom: 0;
}

.error-tooltip {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #ff1493 0%, #ff006e 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 12px;
  box-shadow:
    0 0 20px rgba(255, 20, 147, 0.4),
    0 4px 16px rgba(255, 20, 147, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10;
  animation: errorPulse 0.4s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  max-width: 450px;
  line-height: 1.5;
}

.error-tooltip::before {
  content: '⚠';
  margin-right: 0.5rem;
  font-size: 1.1rem;
  display: inline-block;
  animation: shake 0.5s ease-in-out;
}

@keyframes errorPulse {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  50% {
    transform: scale(1.02) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.input.error,
.select.error,
.textarea.error,
.file-input-label.error {
  border-color: #ff1493 !important;
  box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* File Input */
.file-input-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
}

.file-input-label:hover {
  border-color: var(--accent-color);
  background: var(--bg-secondary);
}

.file-input-label svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.file-input-label span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Checkbox */
.checkbox-group {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.checkbox-label span {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider {
  background: linear-gradient(90deg, #ff6283, #5473e6);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle-input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(84, 115, 230, 0.2);
}

/* Warning Box */
.warning-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(255, 20, 147, 0.1);
  border: 1px solid #ff1493;
  border-radius: 8px;
  box-shadow:
    0 0 20px rgba(255, 20, 147, 0.2),
    inset 0 0 30px rgba(255, 20, 147, 0.05);
}

.warning-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #ff1493;
  filter: drop-shadow(0 0 5px rgba(255, 20, 147, 0.5));
}

.warning-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Info Box - Lavender accent */
.info-box {
  background: rgba(196, 181, 253, 0.1);
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #c4b5fd;
  line-height: 1.5;
  margin: 0.5rem 0 0.75rem 0;
}

.info-box a {
  color: #c4b5fd;
  text-decoration: underline;
}

.info-box a:hover {
  color: #ddd6fe;
}

/* Buttons (removed - now in progress-actions) */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button .button-icon {
  width: 20px;
  height: 20px;
}

.button-primary {
  background: var(--accent-color);
  color: white;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.button-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Robot Quotes Styling - Side by side above console */
.robot-quotes-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1rem 0 0.75rem 0;
  padding: 0;
  width: auto;
  max-width: 100%;
}

/* Hide robot and quotes when simulation is complete */
.progress-section.completed .robot-quotes-container {
  display: none !important;
}

.robot-character {
  flex-shrink: 0;
  width: 60px;
  max-height: 80px;
  display: inline-block;
}

.robot-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(74, 222, 128, 0.3));
}

.speech-bubble {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 600px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0.875rem 1.125rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Speech bubble tail pointing left to robot */
.speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--border-color);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--bg-primary);
}

.speech-bubble-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
  animation: fadeInText 0.8s ease-in-out;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy fun-facts classes (for compatibility) */
.fun-facts-content {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: center;
}

.fun-facts-intro {
  font-size: 0.875rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fun-facts-text {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
  animation: fadeInText 0.8s ease-in-out;
}

/* Matrix Toggle Button */
.matrix-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.button-matrix-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #000000;
  color: #00ff00;
  border: 2px solid #00ff00;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-matrix-toggle:hover {
  background: #00ff00;
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  transform: translateY(-2px);
}

.button-matrix-toggle svg {
  width: 16px;
  height: 16px;
}

/* Progress Section - Lavender gradient */
.progress-section {
  background: linear-gradient(135deg, #c4b5fd 0%, #ddd6fe 50%, #e9d5ff 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

/* Animated lavender gradient when running */
.progress-section.running {
  background: linear-gradient(135deg, #a78bfa 0%, #ddd6fe 50%, #e9d5ff 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Dark text on lavender */
.progress-section .section-title,
.progress-section.running .section-title,
.progress-section.completed .section-title {
  color: #1e1b4b;
}

.progress-section .progress-text,
.progress-section.running .progress-text,
.progress-section.completed .progress-text {
  color: #1e1b4b;
  opacity: 0.8;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.progress-title-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.progress-actions .button {
  margin: 0;
}

/* Hide progress content initially */
.progress-section .progress-content {
  display: none;
  margin-top: 1.5rem;
}

/* Show progress content when running or completed */
.progress-section.running .progress-content,
.progress-section.completed .progress-content {
  display: block;
}

/* Update section title styling in header */
.progress-header .section-title {
  margin: 0;
  font-size: 1.5rem;
}

/* Hide title and progress text when not running or completed */
.progress-section:not(.running):not(.completed) .section-title {
  display: none;
}

.progress-section:not(.running):not(.completed) .progress-text {
  display: none;
}

/* Hide progress text in completed state by default (will be shown for errors/aborted) */
.progress-section.completed .progress-text {
  display: none;
}

/* Style progress text in header */
.progress-header .progress-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.results-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  transition: var(--transition);
}

.progress-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Siri-style Loader */
.siri-loader {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.siri-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff6283,
    #5473e6,
    #ff6283
  );
  animation: siriSpin 2s linear infinite;
  box-shadow:
    0 0 20px rgba(255, 98, 131, 0.4),
    0 0 40px rgba(84, 115, 230, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  position: relative;
}

.siri-circle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg-secondary);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes siriSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Sound Wave Animation - Flowing Horizontal Lines */
.sound-wave-container {
  width: calc(100% + 3rem);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -1.5rem;
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

.wave-svg {
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.wave-path {
  fill: none;
  stroke-width: 15;
  stroke-linecap: round;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
}

.wave-1 {
  opacity: 0.9;
  animation: waveFlow1 2.45s ease-in-out infinite;
}

.wave-2 {
  opacity: 0.7;
  animation: waveFlow2 2.8s ease-in-out infinite;
}

.wave-3 {
  opacity: 0.6;
  animation: waveFlow3 3.15s ease-in-out infinite;
}

@keyframes waveFlow1 {
  0%, 100% {
    d: path("M0,100 Q125,10 250,100 T500,100 T750,100 T1000,100");
  }
  50% {
    d: path("M0,100 Q125,190 250,100 T500,100 T750,100 T1000,100");
  }
}

@keyframes waveFlow2 {
  0%, 100% {
    d: path("M0,100 Q125,190 250,100 T500,100 T750,100 T1000,100");
  }
  50% {
    d: path("M0,100 Q125,10 250,100 T500,100 T750,100 T1000,100");
  }
}

@keyframes waveFlow3 {
  0%, 100% {
    d: path("M0,100 Q125,30 250,100 T500,100 T750,100 T1000,100");
  }
  50% {
    d: path("M0,100 Q125,170 250,100 T500,100 T750,100 T1000,100");
  }
}

/* Keep old progress bar styles for compatibility */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  display: none;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.3s ease;
  width: 0%;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Results Section */
.results-section {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #e9d5ff 100%);
  background-size: 200% 200%;
  animation: celebrationGradient 3s ease infinite;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

@keyframes celebrationGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-message {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.results-header-content {
  flex: 1;
}

.results-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: left;
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-summary {
  color: #ffffff;
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.results-cost {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.celebration-emoji {
  font-size: 2rem;
}

.results-preview {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.preview-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.results-table thead {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 10;
}

.results-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

.results-table th:first-child {
  width: 5%;
  min-width: 40px;
  max-width: 60px;
}

.results-table th:nth-child(2) {
  width: 30%;
}

.results-table th:nth-child(3) {
  width: 65%;
}

/* When no context is provided, make conversation column wider */
.results-table.no-context th:first-child {
  width: 5%;
  min-width: 40px;
  max-width: 60px;
}

.results-table.no-context th:nth-child(2) {
  width: 95%;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.results-table tbody tr:nth-child(even) {
  background: var(--bg-primary);
}

.results-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.1);
}

.results-table td {
  padding: 0.75rem;
  vertical-align: top;
}

.row-number {
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  width: 5% !important;
  min-width: 40px !important;
  max-width: 60px !important;
  padding: 0.75rem 0.25rem !important;
}

.context-cell {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 300px;
  word-wrap: break-word;
  white-space: normal;
}

.conversation-cell {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Cell wrapper with copy button */
.cell-with-copy {
  position: relative;
  padding-right: 32px;
}

.cell-content {
  word-wrap: break-word;
  white-space: normal;
}

.copy-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.cell-with-copy:hover .copy-btn {
  opacity: 0.8;
}

.copy-btn:hover {
  opacity: 1 !important;
  background: rgba(102, 126, 234, 0.8);
  border-color: var(--primary-pink);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-primary);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.copy-btn.copied svg {
  stroke: #10b981;
}

.conversation-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 1.5rem 0 1.25rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  width: 100%;
}

.footer-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.footer-logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1;
}

[data-theme="dark"] .footer-logo {
  color: white;
}

.footer-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  outline: none;
}

.footer-button:focus {
  outline: none;
}

.footer-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.7;
  text-align: left;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .form-section {
    padding: 1.5rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .button {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  animation: fadeIn 0.3s ease;
}

/* Input Hint */
.input-hint {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.5;
}

/* Custom Model Selector */
.model-selector {
  position: relative;
  width: 100%;
}

.model-selector.open {
  z-index: 10001;
}

/* When dropdown is open, allow overflow on form-section */
.form-section.model-dropdown-open {
  overflow: visible;
  z-index: 10000;
}

/* Disable gradient border effects when dropdown is open to prevent mask artifacts */
.form-section.model-dropdown-open::before,
.form-section.model-dropdown-open:hover::before,
.form-section.model-dropdown-open:focus-within::before {
  opacity: 0 !important;
  z-index: -1 !important;
}

.form-section.model-dropdown-open::after,
.form-section.model-dropdown-open:hover::after,
.form-section.model-dropdown-open:focus-within::after {
  opacity: 0 !important;
  z-index: -1 !important;
}

/* Keep the border visible when dropdown is open */
.form-section.model-dropdown-open,
.form-section.model-dropdown-open:hover,
.form-section.model-dropdown-open:focus-within {
  border-color: var(--border-color);
}

.model-selector-trigger {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-selector-trigger::after {
  content: '';
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s ease;
}

[data-theme="dark"] .model-selector-trigger::after {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.model-selector.open .model-selector-trigger::after {
  transform: rotate(180deg);
}

.model-selector-trigger:hover {
  border-color: var(--accent-color);
}

.model-selector-trigger:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.model-selector-placeholder {
  color: var(--text-secondary);
}

.model-selector-selected {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-selector-selected-name {
  font-weight: 500;
  color: var(--text-primary);
}

.model-selector-selected-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.model-selector-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

[data-theme="dark"] .model-selector-dropdown {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.model-selector.open .model-selector-dropdown {
  display: block;
  animation: dropdownFadeIn 0.15s ease;
}

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

.model-group {
  padding: 0.5rem 0;
}

.model-group:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.model-group-label {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.model-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.model-option:hover {
  background: rgba(167, 139, 250, 0.1);
}

.model-option.selected {
  background: rgba(167, 139, 250, 0.15);
}

.model-option-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2px;
}

.model-option-name {
  font-weight: 500;
  color: var(--text-primary);
}

.model-option-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #A78BFA 0%, #c4b5fd 100%);
  color: #1e1b4b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.model-option-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Column Checkboxes */
.column-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.column-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
  cursor: pointer;
}

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

.column-checkbox-item input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-pink);
}

.column-checkbox-item label {
  cursor: pointer;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0;
}

/* Animated Dots for "Synthesizing..." */
.dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Progress Bar Refill Animation */
@keyframes progress-refill {
  0% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(0.3); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* Stop Button (Danger) */
.button-danger {
  background: var(--error-color);
  color: white;
}

.button-danger:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.button-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Table Overlay Modal */
.table-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.table-overlay-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 95%;
  max-width: 1400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.table-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.table-overlay-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.button-close {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error-color);
}

.button-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
}

.button-close:hover svg {
  stroke: var(--error-color);
}

/* Icon-only button */
.button-icon-only {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.button-icon-only:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
}

.button-icon-only svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
}

.table-overlay-body {
  flex: 1;
  overflow: auto;
  padding: 0;
}

.table-overlay-body .table-container {
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.table-overlay-body .results-table {
  width: 100%;
}

.table-overlay-body .results-table thead {
  position: sticky;
  top: 0;
  z-index: 100;
}

.table-overlay-body .results-table thead th {
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  position: sticky;
  top: 0;
}

/* Removed duplicate .actions - now using .progress-actions */

/* Minimalist Console - Embedded */
.console-embedded {
  background: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.console-title {
  color: #c4b5fd;
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  position: relative;
  z-index: 3;
}

/* Matrix Console - Legacy (hidden) */
.console-section {
  display: none;
}

.console-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(196, 181, 253, 0.3);
  position: relative;
  z-index: 3;
}

.console-header .section-title {
  color: #c4b5fd;
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.button-clear {
  background: transparent;
  border: none;
  color: white;
  padding: 0;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  text-decoration: underline;
}

.button-clear:hover {
  opacity: 0.7;
}

.console-body {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 1rem;
  height: 320px;
  overflow-y: auto;
  border-radius: 4px;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  border: none;
  position: relative;
  z-index: 3;
}

/* Custom scrollbar for minimalist console */
.console-body::-webkit-scrollbar {
  width: 8px;
}

.console-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.console-body::-webkit-scrollbar-thumb {
  background: #c4b5fd;
  border-radius: 4px;
}

.console-body::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
}

.console-line {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  animation: consoleLineAppear 0.3s ease;
}

.console-timestamp {
  color: #c4b5fd;
  flex-shrink: 0;
  font-weight: 600;
  opacity: 0.7;
}

.console-message {
  color: white;
  word-break: break-word;
}

/* Console log level colors - Minimalist */
.console-line.log-info .console-message {
  color: white;
}

.console-line.log-success .console-message {
  color: #c4b5fd;
  font-weight: 600;
}

.console-line.log-warning .console-message {
  color: #fbbf24;
}

.console-line.log-error .console-message {
  color: #f87171;
  font-weight: 600;
}

@keyframes consoleLineAppear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions .button {
    width: 100%;
  }

  .console-body {
    height: 300px;
    font-size: 0.75rem;
  }
}

/* ========================================
   API Key Help Links & Modal
   ======================================== */

/* Help links container */
.api-key-help {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Help link button styling */
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.help-link:hover {
  color: var(--accent-color);
}

.help-link:focus {
  outline: none;
  color: var(--accent-color);
}

.help-link:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 2px;
}

.help-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.help-divider {
  color: var(--border-color);
  font-size: 0.75rem;
}

/* Help Modal Overlay */
.help-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.help-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

/* Modal Content */
.help-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalFadeIn 0.2s ease;
}

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

/* Modal Header */
.help-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.help-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.help-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.help-modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.help-modal-close svg {
  width: 16px;
  height: 16px;
}

/* Modal Body */
.help-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  line-height: 1.6;
}

/* Modal content sections */
.help-section {
  margin-bottom: 1.5rem;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.help-section p {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.help-section p:last-child {
  margin-bottom: 0;
}

.help-section ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.help-section li {
  margin-bottom: 0.375rem;
}

.help-section li:last-child {
  margin-bottom: 0;
}

/* Link button in modal */
.help-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 0.75rem;
}

.help-link-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.help-link-button svg {
  width: 16px;
  height: 16px;
}

/* Tips box */
.help-tips {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.help-tips-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.help-tips ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Password manager icons styling */
.password-manager-item {
  margin-bottom: 1rem;
}

.password-manager-item:last-child {
  margin-bottom: 0;
}

.password-manager-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.password-manager-desc {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: 0;
}

/* Responsive modal */
@media (max-width: 600px) {
  .help-modal {
    padding: 1rem;
  }

  .help-modal-content {
    max-height: 90vh;
  }

  .help-modal-header {
    padding: 1rem 1.25rem;
  }

  .help-modal-body {
    padding: 1.25rem;
  }

  .api-key-help {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .help-divider {
    display: none;
  }
}

/* ========================================
   Dashboard Styles
   ======================================== */

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
}

/* Sunrise Gradient Greeting */
.dashboard-greeting {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 3rem 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: inline-block;
  background: linear-gradient(45deg, #F415AB 0%, #F09965 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats Section - Minimal inline style */
.dashboard-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.stat-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.stat-card:hover {
  transform: none;
  box-shadow: none;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Section Titles */
.dashboard-section-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Test Drive CTA Module */
.test-drive-module {
  position: relative;
  background: linear-gradient(135deg, #c4b5fd 0%, #ddd6fe 50%, #e9d5ff 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  min-height: 160px;
}

.test-drive-content {
  max-width: 70%;
  z-index: 1;
  padding-right: 1rem;
}

.test-drive-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.test-drive-description {
  font-size: 0.9rem;
  color: #3b3663;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.test-drive-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.test-drive-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.test-drive-robot {
  position: absolute;
  right: 0.5rem;
  bottom: 0;
  width: 300px;
  height: auto;
  pointer-events: none;
}

.test-drive-robot img {
  width: 100%;
  height: auto;
  transform: translateY(-20px);
}

@media (max-width: 900px) {
  .test-drive-content {
    max-width: 65%;
  }

  .test-drive-robot {
    width: 220px;
  }

  .test-drive-robot img {
    transform: translateY(-35px);
  }
}

@media (max-width: 768px) {
  .test-drive-module {
    flex-direction: column;
    padding: 1.5rem;
    padding-bottom: 140px;
    min-height: auto;
  }

  .test-drive-content {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .test-drive-title {
    font-size: 1.25rem;
  }

  .test-drive-robot {
    position: absolute;
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    width: 160px;
  }

  .test-drive-robot img {
    transform: translateY(-10px);
  }
}

/* Tool Cards - Square with rounded corners */
.dashboard-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* App Icon Style Tool Card */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  width: 72px;
  transition: transform 0.15s ease;
}

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

.tool-card:active {
  transform: scale(0.96);
}

.tool-icon,
.tool-card-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tool-card:hover .tool-card-icon {
  border-color: var(--text-tertiary);
  background: var(--bg-primary);
}

.tool-icon svg,
.tool-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  color: var(--text-secondary);
  transition: color 0.15s ease, stroke 0.15s ease;
}

.tool-card:hover .tool-card-icon svg {
  stroke: var(--text-primary);
  color: var(--text-primary);
}

.tool-content {
  flex: 1;
}

.tool-title,
.tool-card-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin: 0;
  text-align: center;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.tool-card:hover .tool-card-title {
  color: var(--text-secondary);
}

.tool-description,
.tool-card-description {
  display: none;
}

/* App Footer */
.app-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.75rem;
}

.app-footer-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.app-footer-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-footer-links a:hover {
  color: #888;
}

.app-footer-links .separator {
  color: #555;
}

@media (max-width: 768px) {
  .app-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .app-footer-links {
    justify-content: center;
  }
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(167, 139, 250, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  padding-right: 1rem;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.25rem 1rem 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--accent-color);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 1.5rem 1rem;
  }

  .dashboard-greeting {
    font-size: 2.25rem;
  }

  .dashboard-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .dashboard-tools {
    flex-direction: column;
  }

  .tool-card {
    padding: 1.25rem;
  }
}
