/* INVOXA: Toggle switches */

/* New Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background-color: #cbd5e1; /* Off state background */
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0; /* Prevent shrinking in flex containers */
}

.toggle-switch[data-state="true"] {
  background-color: var(--primary); /* On state background */
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle-switch[data-state="true"] .toggle-thumb {
  transform: translateX(18px); /* Move thumb to the right */
}

.admin-action-btn {
  border-radius: 0.7rem;
  padding: 0.55rem 0.75rem;
  background: #4f46e5;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-action-btn:hover {
  background: #4338ca;
}

.admin-action-btn.is-remove {
  background: #fff1f2;
  color: #be123c;
}

.admin-action-btn.is-remove:hover {
  background: #ffe4e6;
}

.admin-action-btn.is-secondary {
  background: #f1f5f9;
  color: #475569;
}

.admin-action-btn.is-secondary:hover {
  background: #e2e8f0;
}

html.dark .context-switch-btn {
  background: #4f46e5;
}

html.dark .header-user-chip,
html.dark .header-logout-btn,
html.dark .admin-stat-card {
  border-color: #334155;
  background: #172033;
  color: #e5e7eb;
}

html.dark .admin-plan-badge {
  background: #263247;
  color: #cbd5e1;
}

html.dark .admin-plan-badge.is-pro {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

html.dark .admin-plan-badge.is-basic {
  background: rgba(59, 130, 246, 0.15); /* blue-500 with alpha */
  color: #60a5fa; /* blue-400 */
}

html.dark .admin-plan-badge.is-premium {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

