/* File location: src/ui/ui-styles.css */
/* Voice Assistant UI Styles - Complete CSS Module */

.theme-dark {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --surface: rgba(0, 0, 0, 0.6);
  --surface-hover: rgba(0, 0, 0, 0.7);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --radius: 16px;
}

.theme-light {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-hover: rgba(255, 255, 255, 0.8);
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.6);
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 16px;
}

.voice-assistant-container {
  position: fixed;
  z-index: 9999;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  pointer-events: none;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --radius: 16px;
}

.voice-assistant-container * {
  box-sizing: border-box;
}

.voice-assistant-container button:focus,
.voice-assistant-container input:focus,
.voice-assistant-container select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.voice-assistant-container button,
.voice-assistant-minimized,
.va-modal button {
  min-width: 44px;
  min-height: 44px;
}

.voice-assistant-container.position-bottom-right {
  bottom: 15px;
  right: 15px;
}

.voice-assistant-container.position-bottom-left {
  bottom: 24px;
  left: 24px;
}

.voice-assistant-container.position-top-right {
  top: 24px;
  right: 24px;
}

.voice-assistant-container.position-top-left {
  top: 24px;
  left: 24px;
}

.voice-assistant-container.position-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.voice-assistant-container.full-screen {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.voice-assistant-container.full-screen .voice-assistant-widget {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow-y: auto;
}

.voice-assistant-container.desktop-width {
  width: 25%;
  height: 100%;
}

.voice-assistant-container.desktop-width .voice-assistant-widget {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* Compact display mode */
.voice-assistant-container.compact .voice-assistant-widget {
  padding: 12px;
}

.voice-assistant-container.compact .voice-assistant-pill {
  gap: 8px;
  padding: 6px 12px;
}

.voice-assistant-container.compact .voice-assistant-pill .primary-action {
  width: 44px;
  height: 44px;
}

.voice-assistant-container.compact .secondary-btn {
  width: 36px;
  height: 36px;
  padding: 6px;
}

.voice-assistant-container.compact .collapse-btn {
  position: static;
  margin-left: auto;
}

.voice-assistant-container.compact .collapse-btn .va-icon {
  transform: rotate(-90deg);
}

.voice-assistant-widget {
  background: var(--surface);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  width: 320px;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: fadeInScale 0.3s ease;
  color: var(--text);
}

.voice-assistant-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Compact pill layout */
.voice-assistant-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  width: auto;
  border-radius: 40px;
  background: var(--surface);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}

.voice-assistant-pill .primary-action {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
}

.voice-assistant-pill #action-text {
  display: none;
}

.voice-assistant-pill .status-text {
  margin: 0;
  text-align: left;
}

.secondary-btn {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  padding: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 16px;
  opacity: 0;
  transform: translateX(10px);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}

.secondary-btn.show {
  opacity: 1;
  transform: translateX(0);
}

.secondary-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.collapse-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.collapse-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.voice-assistant-container.full-screen .collapse-btn {
  position: sticky;
  top: 8px;
  z-index: 10;
}

.va-icon {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
}

.secondary-btn .va-icon,
.voice-assistant-minimized .va-icon {
  width: 20px;
  height: 20px;
}

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

.header-actions {
  display: flex;
  gap: 8px;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  transition: all 0.3s ease;
}

.status-dot.connected {
  background: var(--success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.listening {
  background: var(--primary);
  animation: listening-pulse 1s ease-in-out infinite;
}

.status-dot.talking {
  background: var(--warning);
  animation: talking-pulse 0.5s ease-in-out infinite;
}

.minimize-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.minimize-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.settings-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.settings-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(17, 17, 27, 0.95);
  border-radius: var(--radius);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000000;
  overflow-y: auto;
}

.settings-panel.open {
  transform: translateX(0);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.settings-close-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.settings-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.settings-item.checkbox {
  cursor: pointer;
}

.settings-item.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.settings-item.select select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  min-height: 44px;
}

.settings-item.select select:hover {
  background: var(--surface-hover);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.settings-group:first-child {
  border-top: none;
  padding-top: 0;
}

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

.settings-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.main-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.primary-action {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.primary-action.start {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.primary-action.start:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.primary-action span {
  position: relative;
  z-index: 1;
}

.primary-action.active {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
}

.primary-action.active:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.primary-action.listening {
  animation: btn-pulse 2s ease-in-out infinite;
}

.primary-action.listening::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--primary);
  opacity: 0.4;
  animation: ripple 1.5s ease-out infinite;
}

.wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.primary-action.listening .wave-canvas {
  opacity: 1;
}

.pressed {
  transform: scale(0.95);
}

.control-btn {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.control-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.control-btn.danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.control-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

.control-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.features-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.feature-btn {
  flex: 1;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.feature-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.feature-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.feature-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.voice-assistant-widget.icon-only .btn-text {
  display: none;
}

.voice-assistant-widget.icon-only .primary-action {
  width: 56px;
  margin: 0 auto;
}

.voice-assistant-widget.icon-only .control-btn,
.voice-assistant-widget.icon-only .feature-btn {
  width: 40px;
  flex: 0;
  padding: 0;
}

.voice-assistant-widget.icon-only .features-row {
  justify-content: center;
}

#action-icon,
#action-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reset-btn {
  width: 100%;
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.reset-btn::before {
  content: '⟲';
}

.reset-btn:hover {
  filter: brightness(1.1);
}


.status-text {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  margin-top: 12px;
  min-height: 18px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.status-text.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.status-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.voice-assistant-minimized {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
  pointer-events: auto;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  animation: fadeInScale 0.3s ease;
}

.voice-assistant-minimized:hover {
  transform: scale(1.05);
  background: var(--surface-hover);
  color: var(--text);
}

.voice-assistant-minimized.active {
  background: var(--surface);
  border: 2px solid var(--success);
  color: var(--text);
  box-shadow: 0 0 6px var(--success), 0 0 12px var(--success);
  animation: va-green-glow 2s ease-in-out infinite;
}

.voice-assistant-minimized.active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  border: 2px solid var(--success);
  border-top-color: transparent;
  pointer-events: none;
  animation: va-spin 1s linear infinite;
}

@keyframes va-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Video preview container */
.video-preview {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 160px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  z-index: 1000000;
  pointer-events: auto;
  display: none;
}

.video-preview.active {
  display: block;
}

.video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview .video-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--surface);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes va-green-glow {
  0%, 100% { box-shadow: 0 0 6px var(--success), 0 0 12px var(--success); }
  50% { box-shadow: 0 0 12px var(--success), 0 0 24px var(--success); }
}

@keyframes listening-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes talking-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutScale {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

.fade-out {
  animation: fadeOutScale 0.3s ease forwards;
}

/* Light theme */
.voice-assistant-container.theme-light {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-hover: rgba(255, 255, 255, 0.8);
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.6);
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .voice-assistant-widget {
    width: 280px;
    padding: 16px;
  }
  
  .voice-assistant-container.position-bottom-right,
  .voice-assistant-container.position-bottom-left {
    bottom: 16px;
  }
  
  .voice-assistant-container.position-bottom-right {
    right: 16px;
  }
  
  .voice-assistant-container.position-bottom-left {
    left: 16px;
  }

  .video-preview {
    width: 120px;
    height: 90px;
  }
}

/* First run tooltips */
.first-run-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000001;
}

.first-run-tooltip {
  position: absolute;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
}

/* Vision button */
.vision-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.vision-btn.glow {
  color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* Base modal */
.va-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.va-modal {
  position: absolute;
  background: var(--surface);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  width: 280px;
  max-width: calc(100% - 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 16px;
  animation: va-slide-up 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 1000001;
  color: var(--text);
}

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

.va-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.va-modal-close {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.va-modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

@keyframes va-slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes va-slide-down {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

@keyframes va-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.va-modal.closing {
  animation: va-slide-down 0.3s ease forwards;
}

.va-modal-overlay.closing {
  animation: va-fade-out 0.3s ease forwards;
}

@media (max-width: 480px) {
  .va-modal {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: calc(100% - 32px);
    border-radius: var(--radius);
    padding: 16px;
  }
}

/* Vision modal */
.vision-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(17, 17, 27, 0.95);
  border-radius: var(--radius);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000000;
  overflow-y: auto;
}

.vision-panel.open {
  transform: translateX(0);
}

.vision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vision-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.vision-close-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.vision-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.vision-item:last-child {
  border-bottom: none;
}

.vision-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-icon .va-icon {
  width: 24px;
  height: 24px;
}

.vision-content {
  flex: 1;
}

.vision-label {
  font-weight: 600;
}

.vision-description {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  padding: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #3a3a3a;
  border-radius: 24px;
  transition: background 0.3s ease;
}

.slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.voice-assistant-container.theme-light .slider {
  background: #e5e5e5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.try-me-hint {
  position: fixed;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 1000001;
  pointer-events: none;
  transform: translate(-50%, 0);
  animation: try-me-bob 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes try-me-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}
