/**
 * ==========================================================================
 * Bharat Photon Enterprise Design System (Photon DS)
 * File: photon-components.css
 * Version: 2.1.0
 * Components: Buttons, Forms, Cards, Badges, Tables, Modals, Toasts, Skeletons
 * ==========================================================================
 */

/* ==========================================================================
   1. BUTTONS (.btn)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-xs);
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--ds-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: all var(--ds-transition-fast);
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45);
}

/* Primary Button (Electric Blue) */
.btn-primary {
  background: var(--ds-brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Cyan Glow Action Button */
.btn-cyan {
  background: var(--ds-brand-cyan-glow);
  color: #02050b;
  font-weight: var(--ds-weight-bold);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.40);
}
.btn-cyan:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.65);
  transform: translateY(-1px);
}

/* Purple Automation Button */
.btn-purple {
  background: var(--ds-brand-purple-glow);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}
.btn-purple:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.55);
  transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ds-text-primary);
  border-color: var(--ds-border-card);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Ghost / Subdued Button */
.btn-ghost {
  background: transparent;
  color: var(--ds-text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ds-text-primary);
}

/* Success Button */
.btn-success {
  background: var(--ds-brand-emerald-glow);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Danger Button */
.btn-danger {
  background: var(--ds-brand-danger-glow);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}
.btn-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Button Sizes */
.btn-xs { padding: 4px 8px; font-size: var(--ds-text-2xs); border-radius: var(--ds-radius-xs); }
.btn-sm { padding: 7px 13px; font-size: var(--ds-text-xs); }
.btn-md { padding: 10px 18px; font-size: var(--ds-text-sm); }
.btn-lg { padding: 13px 24px; font-size: var(--ds-text-base); border-radius: var(--ds-radius-md); }
.btn-full { width: 100%; }

/* Icon Only Button */
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--ds-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-icon.btn-sm { width: 30px; height: 30px; }
.btn-icon.btn-lg { width: 46px; height: 46px; }

/* Button Spinner Loading State */
.btn.loading {
  pointer-events: none;
  color: transparent !important;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ds-spin 0.7s linear infinite;
}


/* ==========================================================================
   2. FORM CONTROLS & VALIDATION STATES
   ========================================================================== */
.form-group {
  margin-bottom: var(--ds-space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-primary);
  background: var(--ds-surface-input);
  border: 1px solid var(--ds-border-card);
  border-radius: var(--ds-radius-sm);
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--ds-transition-fast), box-shadow var(--ds-transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ds-text-dim);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--ds-border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Validation Feedback States */
.form-group.has-error .form-input {
  border-color: var(--photon-rose-500);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.20);
}
.form-group.has-success .form-input {
  border-color: var(--photon-emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.20);
}

.form-feedback {
  font-size: var(--ds-text-2xs);
  font-weight: var(--ds-weight-medium);
  margin-top: 2px;
}
.form-feedback.error { color: var(--photon-rose-400); }
.form-feedback.success { color: var(--photon-emerald-400); }
.form-feedback.hint { color: var(--ds-text-muted); }

/* Input with Icons & Action Buttons */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Prefix Icon (only when SVG is the first element before input) */
.input-icon-wrap > svg:first-child,
.input-icon-wrap > .input-prefix-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-muted);
  pointer-events: none;
  z-index: 1;
}

/* Add left padding ONLY when a prefix icon is present */
.input-icon-wrap > svg:first-child + .form-input,
.input-icon-wrap > .input-prefix-icon + .form-input,
.input-icon-wrap.has-prefix .form-input {
  padding-left: 38px;
}

/* Add right padding when eye button or suffix action is present */
.input-icon-wrap.has-eye .form-input,
.input-icon-wrap .form-input:has(~ .btn-toggle-eye) {
  padding-right: 40px;
}

/* Password Eye Button */
.btn-toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ds-text-muted);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-xs);
  transition: all var(--ds-transition-fast);
  z-index: 2;
  line-height: 1;
}

.btn-toggle-eye svg {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  pointer-events: auto !important;
  display: block;
  width: 16px;
  height: 16px;
}

.btn-toggle-eye:hover {
  color: var(--ds-text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-toggle-eye.is-visible {
  color: var(--photon-cyan-400);
}

/* Custom Toggle Switch */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-sm);
  cursor: pointer;
  user-select: none;
}
.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-track {
  width: 44px;
  height: 24px;
  background: var(--photon-neutral-700);
  border-radius: var(--ds-radius-pill);
  position: relative;
  transition: background var(--ds-transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.switch-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform var(--ds-transition-smooth);
}
.switch-input:checked + .switch-track {
  background: var(--photon-cyan-600);
  border-color: var(--photon-cyan-400);
}
.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

/* Drag & Drop File Zone */
.file-dropzone {
  border: 2px dashed var(--ds-border-card);
  border-radius: var(--ds-radius-md);
  padding: 28px 20px;
  text-align: center;
  background: rgba(11, 19, 34, 0.5);
  cursor: pointer;
  transition: all var(--ds-transition-fast);
}
.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--photon-cyan-400);
  background: rgba(56, 189, 248, 0.05);
}


/* ==========================================================================
   3. CARDS & APP SURFACES
   ========================================================================== */
.card {
  background: var(--ds-surface-card);
  border: 1px solid var(--ds-border-card);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-space-lg);
  box-shadow: var(--ds-shadow-md);
  box-sizing: border-box;
  transition: border-color var(--ds-transition-fast), box-shadow var(--ds-transition-fast), transform var(--ds-transition-fast);
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.20);
}

/* App Launcher Grid Card */
.app-card {
  background: var(--ds-surface-card);
  border: 1px solid var(--ds-border-card);
  border-radius: var(--ds-radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ds-transition-smooth);
  box-shadow: var(--ds-shadow-md);
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--ds-border-hover);
  box-shadow: var(--ds-shadow-glow), var(--ds-shadow-lg);
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-card-title {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-md);
  font-weight: var(--ds-weight-bold);
  color: #ffffff;
  margin: 0;
}
.app-card-desc {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-secondary);
  line-height: 1.5;
  margin: 4px 0 0 0;
}

/* Stat Metric Card */
.stat-card {
  display: flex;
  align-items: center;
  gap: var(--ds-space-md);
  background: var(--ds-surface-card);
  border: 1px solid var(--ds-border-card);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-space-md) var(--ds-space-lg);
  box-shadow: var(--ds-shadow-md);
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--ds-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon-cyan { background: rgba(56, 189, 248, 0.12); color: var(--photon-cyan-400); border: 1px solid rgba(56, 189, 248, 0.25); }
.stat-icon-purple { background: rgba(192, 132, 252, 0.12); color: var(--photon-purple-400); border: 1px solid rgba(192, 132, 252, 0.25); }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.12); color: var(--photon-emerald-400); border: 1px solid rgba(16, 185, 129, 0.25); }
.stat-val { font-size: var(--ds-text-2xl); font-weight: var(--ds-weight-black); color: #ffffff; font-family: var(--ds-font-display); line-height: 1.1; }
.stat-lbl { font-size: var(--ds-text-xs); color: var(--ds-text-secondary); margin-top: 2px; }


/* ==========================================================================
   4. BADGES & STATUS PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-2xs);
  font-weight: var(--ds-weight-bold);
  border-radius: var(--ds-radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.badge-cyan    { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.badge-purple  { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.badge-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-amber   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-rose    { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.badge-neutral { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.12); }
.badge-pill    { border-radius: var(--ds-radius-pill); padding: 4px 10px; }


/* ==========================================================================
   5. DATA TABLES (.photon-table)
   ========================================================================== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-border-card);
  background: var(--ds-surface-card);
  box-shadow: var(--ds-shadow-md);
}

.photon-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-sm);
}

.photon-table thead {
  background: rgba(0, 0, 0, 0.40);
  border-bottom: 1px solid var(--ds-border-card);
}

.photon-table th {
  padding: 12px 16px;
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.photon-table td {
  padding: 13px 16px;
  color: var(--ds-text-primary);
  border-bottom: 1px solid var(--ds-border-subtle);
  vertical-align: middle;
}

.photon-table tbody tr {
  transition: background var(--ds-transition-fast);
}

.photon-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.photon-table tbody tr:last-child td {
  border-bottom: none;
}


/* ==========================================================================
   6. MODALS & DIALOG OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--ds-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ds-transition-smooth), visibility var(--ds-transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--ds-surface-modal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform var(--ds-transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-md);
  font-weight: var(--ds-weight-bold);
  color: #ffffff;
  margin: 0;
}

.modal-body {
  padding: 22px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--ds-border-subtle);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}


/* ==========================================================================
   7. TOAST NOTIFICATIONS
   ========================================================================== */
#photon-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--ds-z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.photon-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 12px 16px;
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ds-radius-sm);
  box-shadow: var(--ds-shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--ds-font-primary);
  font-size: var(--ds-text-sm);
  transform: translateX(100%);
  opacity: 0;
  transition: all var(--ds-transition-smooth);
}

.photon-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast-success { border-left: 4px solid var(--photon-emerald-500); }
.toast-success .toast-icon { color: var(--photon-emerald-400); }
.toast-error   { border-left: 4px solid var(--photon-rose-500); }
.toast-error .toast-icon   { color: var(--photon-rose-400); }
.toast-warning { border-left: 4px solid var(--photon-amber-500); }
.toast-warning .toast-icon { color: var(--photon-amber-400); }
.toast-info    { border-left: 4px solid var(--photon-cyan-500); }
.toast-info .toast-icon    { color: var(--photon-cyan-400); }


/* ==========================================================================
   8. SKELETON PLACEHOLDERS
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, #111c30 25%, #192a48 50%, #111c30 75%);
  background-size: 200% 100%;
  animation: ds-shimmer 1.5s infinite;
  border-radius: var(--ds-radius-xs);
  display: block;
}

@keyframes ds-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes ds-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   9. SETTINGS GEAR MENU & MODAL DRAWER
   ========================================================================== */
.hdr-btn-settings, .bpe-btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ds-border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--ds-text-secondary, #94a3b8);
  border-radius: var(--ds-radius-sm, 6px);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--ds-transition-fast, 0.2s ease);
  outline: none;
  box-sizing: border-box;
}

.hdr-btn-settings:hover, .bpe-btn-settings:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  transform: translateY(-1px);
}

.hdr-btn-settings:hover svg, .bpe-btn-settings:hover svg {
  transform: rotate(60deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hdr-btn-settings svg, .bpe-btn-settings svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Settings Modal Dialog */
.photon-settings-dialog {
  max-width: 680px !important;
  width: 95% !important;
  background: #090f1d !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.light-theme .photon-settings-dialog {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.photon-settings-header {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.light-theme .photon-settings-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.photon-settings-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--ds-font-display, 'Inter', sans-serif);
  letter-spacing: -0.2px;
}

.light-theme .photon-settings-title {
  color: #0f172a;
}

.photon-settings-layout {
  display: flex;
  min-height: 380px;
  max-height: 65vh;
}

@media (max-width: 640px) {
  .photon-settings-layout {
    flex-direction: column;
  }
}

.photon-settings-sidebar {
  width: 190px;
  background: rgba(2, 6, 23, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.light-theme .photon-settings-sidebar {
  background: #f1f5f9;
  border-right-color: #e2e8f0;
}

.photon-settings-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.photon-settings-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.light-theme .photon-settings-nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.photon-settings-nav-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
}

.light-theme .photon-settings-nav-btn.active {
  background: #e0f2fe;
  color: #0284c7;
}

.photon-settings-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.2);
}

.photon-settings-panel {
  display: none;
}

.photon-settings-panel.active {
  display: block;
}

.photon-setting-group {
  margin-bottom: 20px;
}

.photon-setting-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 10px;
}

.photon-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 12px;
}

.light-theme .photon-setting-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.photon-setting-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
}

.light-theme .photon-setting-label {
  color: #1e293b;
}

.photon-setting-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.photon-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.photon-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.photon-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.2s;
  border-radius: 22px;
}

.photon-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.photon-toggle-switch input:checked + .photon-toggle-slider {
  background-color: #0284c7;
}

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

.photon-settings-footer {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.light-theme .photon-settings-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

