/* CSS RESET & VARIABLES */
:root {
  /* Colors - Aurora Glass Dark Theme with SALA Red Accent */
  --bg-primary: #070a13;
  --bg-card: rgba(20, 26, 45, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #db0f19;
  --border-focus-glow: rgba(219, 15, 25, 0.25);
  --accent-primary: #db0f19;
  --accent-hover: #ef4444;
  --accent-danger: #f87171;
  --accent-danger-hover: #ef4444;
  --accent-success: #34d399;
  --text-heading: #ffffff;
  
  /* Layout Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  
  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Fonts */
  --font-sans: 'Kanit', system-ui, -apple-system, sans-serif;
  --font-display: 'Kanit', var(--font-sans);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Aurora Background Elements */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
  background-color: #070a13;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}

.aurora-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #db0f19 0%, rgba(219, 15, 25, 0) 70%);
  animation: float-aurora 25s infinite alternate;
}

.aurora-2 {
  bottom: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #4f46e5 0%, rgba(79, 70, 229, 0) 70%);
  animation: float-aurora 35s infinite alternate-reverse;
}

.aurora-3 {
  top: 40%;
  left: 15%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #b45309 0%, rgba(180, 83, 9, 0) 70%);
  animation: float-aurora 30s infinite alternate;
}

@keyframes float-aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 4%) scale(1.08); }
  100% { transform: translate(-6%, -4%) scale(0.92); }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  color: var(--text-heading);
}

h1 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 2rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 0.975rem;
  margin-bottom: var(--space-md);
}

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

.text-tertiary {
  color: var(--text-tertiary);
}

/* Layout Elements with Glassmorphism */
.app-header {
  background-color: rgba(11, 15, 25, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-svg {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}

.logo-subtext {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.125em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-top: 0.125rem;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(219, 15, 25, 0.2);
  border: 1px solid rgba(219, 15, 25, 0.3);
}

.app-main {
  flex: 1;
  max-width: 50rem;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

#view-dashboard {
  max-width: 80rem;
}

/* App Footer */
.app-footer {
  border-top: 1px solid var(--border-color);
  background-color: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: auto;
  padding: var(--space-lg) 0;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-height: 44px;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(219, 15, 25, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(219, 15, 25, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

.btn-sheets {
  background-color: rgba(15, 157, 88, 0.2);
  border: 1px solid rgba(15, 157, 88, 0.35);
  color: #a3e635;
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.1);
}

.btn-sheets:hover {
  background-color: #0f9d58;
  border-color: #0f9d58;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 157, 88, 0.35);
}

.btn-sheets:active {
  transform: translateY(0);
}

.btn-icon-left span {
  margin-right: var(--space-xs);
}

/* Glassmorphic Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

/* View Panels logic */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* DASHBOARD VIEW */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--space-lg);
}

.form-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-card:hover {
  border-color: rgba(219, 15, 25, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.form-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  word-break: break-word;
  color: #ffffff;
  line-height: 1.3;
}

.response-badge {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.725rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.form-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.form-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
  margin-top: auto;
}

.form-card-actions {
  display: flex;
  gap: var(--space-xs);
  width: 100%;
}

.form-card-actions .btn {
  flex: 1;
  min-width: 0;
  padding: 0.375rem 0.25rem;
  font-size: 0.825rem;
  min-height: 36px;
}

.form-card-actions .btn-delete {
  flex: 0 0 36px;
  padding: 0.375rem 0;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl) * 2;
  background-color: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

/* FORM EDITOR */
.editor-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.editor-actions {
  display: flex;
  gap: var(--space-sm);
}

.form-meta-card {
  border-top: 4px solid var(--accent-primary);
}

.form-group {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

/* Glassmorphic inputs */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
textarea,
select {
  font-family: var(--font-sans);
  font-size: 1rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  min-height: 48px;
  outline: none;
  transition: all 0.15s ease;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="date"]:focus-visible,
input[type="time"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px var(--border-focus-glow);
}

/* Custom Calendar and Time pickers icon colors */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.input-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  border-color: transparent !important;
  background-color: transparent !important;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  min-height: auto;
}

.input-title:focus-visible {
  border-bottom-color: var(--border-focus) !important;
  box-shadow: none !important;
}

.input-desc {
  border-color: transparent !important;
  background-color: transparent !important;
  padding: var(--space-xs) 0;
  border-bottom: 1px dashed transparent !important;
  border-radius: 0;
  min-height: auto;
  resize: vertical;
}

.input-desc:focus-visible {
  border-bottom-color: var(--border-focus) !important;
  box-shadow: none !important;
}

/* Question Creator Card */
.question-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.question-card.active {
  border-left: 4px solid var(--accent-primary);
  padding-left: calc(var(--space-lg) - 4px);
}

.q-header-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  flex-wrap: wrap;
}

.q-input-text {
  flex: 1;
  min-width: 250px;
}

.q-type-select {
  width: 220px;
}

/* Options Builder */
.options-builder {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-left: var(--space-sm);
  padding-left: var(--space-md);
  border-left: 2px solid var(--border-color);
}

.option-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.option-marker {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  user-select: none;
}

.option-input {
  flex: 1;
  min-height: 38px !important;
  padding: 0.5rem 0.75rem !important;
}

.btn-remove-option {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-remove-option:hover {
  color: var(--accent-danger);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-add-option {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
  cursor: pointer;
  align-self: flex-start;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-left: calc(1.5rem + var(--space-sm));
}

.btn-add-option:hover {
  background-color: rgba(219, 15, 25, 0.15);
}

/* Linear Scale Editor configuration styling */
.scale-editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-left: var(--space-sm);
  padding-left: var(--space-md);
  border-left: 2px solid var(--border-color);
}

.scale-range-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.scale-range-select {
  width: 100px !important;
  min-height: 36px !important;
  padding: 0.25rem var(--space-sm) !important;
}

.scale-label-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.scale-label-input-row span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-width: 80px;
}

.scale-label-input {
  min-height: 38px !important;
  padding: 0.5rem 0.75rem !important;
}

/* Question Footer Operations */
.q-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.q-order-controls {
  display: flex;
  gap: var(--space-xs);
}

.q-footer-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.required-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--text-tertiary);
  transition: .2s;
  border-radius: 20px;
}

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

input:checked + .slider {
  background-color: var(--accent-primary);
}

input:focus-visible + .slider {
  box-shadow: 0 0 1px var(--accent-primary);
}

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

.btn-delete-q {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
}

.btn-delete-q:hover {
  color: var(--accent-danger);
  background-color: rgba(255, 255, 255, 0.05);
}

/* FORM VIEWER */
.viewer-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.viewer-meta-card {
  border-top: 8px solid var(--accent-primary);
}

.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-preview {
  background-color: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.required-notice {
  font-size: 0.8rem;
  color: var(--accent-danger);
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

.required-star {
  color: #ef4444;
  margin-left: 0.125rem;
}

/* Viewer Question Card */
.viewer-q-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.viewer-q-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: #ffffff;
}

/* Form Validation & Focus outlines */
.viewer-q-card.has-error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5), 0 0 16px rgba(239, 68, 68, 0.15);
}

.error-message {
  color: #f87171;
  font-size: 0.825rem;
  font-weight: 500;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Choice inputs formatting */
.choices-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.choice-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  min-height: 24px;
}

.choice-option input[type="radio"],
.choice-option input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.choice-option span {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.choice-option:hover span {
  color: #ffffff;
}

/* Linear Scale Viewer layout */
.scale-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.scale-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 120px;
  line-height: 1.3;
}

.scale-label-left {
  text-align: left;
}

.scale-label-right {
  text-align: right;
}

.scale-options-row {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  flex: 1;
}

.scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.scale-option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent-primary);
  margin: 0;
  cursor: pointer;
}

.scale-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.scale-option:hover .scale-num {
  color: #ffffff;
}

.scale-option input[type="radio"]:checked + .scale-num {
  color: var(--accent-primary);
}

@media (max-width: 560px) {
  .scale-container {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }
  .scale-label-left, .scale-label-right {
    text-align: center;
    max-width: 100%;
  }
  .scale-options-row {
    gap: var(--space-md);
  }
}

.viewer-submit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-xl);
}

/* Success Card */
.success-card {
  text-align: center;
  padding: var(--space-xl) * 2;
  border-top: 8px solid var(--accent-success);
}

.success-icon {
  font-size: 3rem;
  color: #ffffff;
  background-color: var(--accent-success);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* RESPONSES VIEW */
.responses-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.responses-actions {
  display: flex;
  gap: var(--space-sm);
}

.responses-summary-card {
  border-top: 4px solid var(--accent-primary);
}

.stats-overview {
  margin-bottom: var(--space-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  color: #ffffff;
  border-bottom-color: var(--accent-primary);
}

.responses-content-panel {
  display: none;
}

.responses-content-panel.active {
  display: block;
}

/* Responses Summary Elements */
.response-summary-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.summary-question-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: #ffffff;
}

/* Scale Average Badge */
.scale-average-badge {
  display: inline-block;
  margin-bottom: var(--space-md);
  background-color: rgba(219, 15, 25, 0.15);
  border: 1px solid rgba(219, 15, 25, 0.25);
  color: #ff8a8f;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Bar chart styles */
.chart-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.chart-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
}

.chart-bar-outer {
  background-color: rgba(255, 255, 255, 0.04);
  height: 24px;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bar-inner {
  background-color: var(--accent-primary);
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(219, 15, 25, 0.5);
}

/* Text responses list */
.text-responses-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 250px;
  overflow-y: auto;
  padding-right: var(--space-xs);
}

.text-response-bubble {
  background-color: rgba(255, 255, 255, 0.02);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Individual Answers Navigation */
.individual-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}

#individual-response-index {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.individual-response-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.individual-response-item {
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) 0;
}

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

.ind-q-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.ind-q-answer {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 500;
}

.ind-no-answer {
  color: var(--text-tertiary);
  font-style: italic;
  font-weight: 400;
}

/* Custom scrollbar for text response list */
.text-responses-list::-webkit-scrollbar {
  width: 6px;
}
.text-responses-list::-webkit-scrollbar-track {
  background: transparent;
}
.text-responses-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Responsive Rules */
@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }
  
  .app-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .view-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .editor-header-bar, .responses-header-bar {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: stretch;
  }
  
  .editor-actions, .responses-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Print Styling */
@media print {
  .no-print, header, footer, .editor-header-bar, .responses-header-bar, .individual-navigation, button, .aurora-container {
    display: none !important;
  }
  
  body {
    background-color: #ffffff;
    color: #000000;
  }
  
  .app-main {
    padding: 0;
    max-width: 100%;
  }
  
  .card, .viewer-q-card, .individual-response-card {
    border: none;
    background: none;
    box-shadow: none;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-md);
  }
  
  h1, h2, h3, h4, .viewer-q-title, .ind-q-answer {
    color: #000000 !important;
  }
  
  p, .text-secondary, .choice-option span {
    color: #333333 !important;
  }
}

/* ==========================================
   LIGHT THEME OVERRIDES
   ========================================== */
body[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.65);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus-glow: rgba(219, 15, 25, 0.15);
  --text-heading: #0f172a;
}

body[data-theme="light"] .aurora-container {
  background-color: #f1f5f9;
}

body[data-theme="light"] .aurora-blob {
  opacity: 0.18;
  mix-blend-mode: multiply;
}

body[data-theme="light"] .app-header {
  background-color: rgba(241, 245, 249, 0.75);
}

body[data-theme="light"] .logo-text {
  color: #0f172a;
}

body[data-theme="light"] .nav-link:hover {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .nav-link.active {
  color: #000000;
  background-color: rgba(219, 15, 25, 0.08);
  border-color: rgba(219, 15, 25, 0.2);
}

body[data-theme="light"] .btn-secondary {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

body[data-theme="light"] .btn-secondary:hover {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
  color: #000000;
}

body[data-theme="light"] input[type="text"],
body[data-theme="light"] input[type="email"],
body[data-theme="light"] input[type="date"],
body[data-theme="light"] input[type="time"],
body[data-theme="light"] textarea,
body[data-theme="light"] select {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body[data-theme="light"] input[type="text"]:focus-visible,
body[data-theme="light"] input[type="email"]:focus-visible,
body[data-theme="light"] input[type="date"]:focus-visible,
body[data-theme="light"] input[type="time"]:focus-visible,
body[data-theme="light"] textarea:focus-visible,
body[data-theme="light"] select:focus-visible {
  background-color: #ffffff;
  border-color: var(--border-focus);
}

body[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: none;
}

body[data-theme="light"] .question-card,
body[data-theme="light"] .viewer-q-card,
body[data-theme="light"] .response-summary-item,
body[data-theme="light"] .individual-response-card,
body[data-theme="light"] .individual-navigation {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .text-response-bubble {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

body[data-theme="light"] .text-responses-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .scale-container {
  background-color: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .scale-num {
  color: var(--text-secondary);
}

body[data-theme="light"] .scale-option:hover .scale-num {
  color: #000000;
}

body[data-theme="light"] .scale-average-badge {
  background-color: rgba(219, 15, 25, 0.08);
  border-color: rgba(219, 15, 25, 0.15);
  color: #b91c1c;
}

body[data-theme="light"] .chart-bar-outer {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .response-badge {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}

body[data-theme="light"] .viewer-timer-bar {
  background-color: rgba(241, 245, 249, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .timer-countdown {
  color: #0f172a;
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .timer-bar-progress {
  background-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .progress-circle {
  border-color: rgba(0, 0, 0, 0.08);
  background-color: rgba(0, 0, 0, 0.01);
}

body[data-theme="light"] .progress-step.active {
  color: #000000;
}

body[data-theme="light"] .quiz-answer-setting {
  background-color: rgba(0, 0, 0, 0.01);
}

body[data-theme="light"] .section-title {
  color: #0f172a;
}

/* ==========================================
   PHASE 2 SPECIAL ELEMENTS STYLING
   ========================================== */

/* Section Dividers in Editor & Viewer */
.section-card {
  border-top: 6px solid #4f46e5 !important;
  background: rgba(79, 70, 229, 0.03) !important;
  border-radius: var(--radius-lg);
}

body[data-theme="light"] .section-card {
  background: rgba(79, 70, 229, 0.02) !important;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.section-badge-editor {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: rgba(79, 70, 229, 0.15);
  color: #a5b4fc;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 70, 229, 0.3);
  margin-bottom: var(--space-sm);
}

body[data-theme="light"] .section-badge-editor {
  color: #4f46e5;
  background-color: rgba(79, 70, 229, 0.08);
}

/* Quiz grading result view */
.quiz-result-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background-color: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.05);
}

.quiz-score-val {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-success);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.quiz-score-lbl {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Point badges */
.q-points-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent-primary);
  background-color: rgba(219, 15, 25, 0.08);
  border: 1px solid rgba(219, 15, 25, 0.18);
  padding: 0.1rem 0.375rem;
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
  vertical-align: middle;
}

body[data-theme="light"] .q-points-badge {
  background-color: rgba(219, 15, 25, 0.05);
}

.quiz-answer-setting {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.quiz-answer-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-success);
}

.points-config-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.points-input {
  width: 70px !important;
  min-height: 32px !important;
  padding: 0.25rem var(--space-sm) !important;
  margin: 0;
  font-size: 0.875rem !important;
}

/* Sticky Timer Bar Widget */
.viewer-timer-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timer-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1rem;
}

.timer-label {
  color: var(--text-secondary);
}

.timer-countdown {
  font-family: monospace;
  font-size: 1.15rem;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-bar-progress {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

#viewer-timer-progress-fill {
  height: 100%;
  background-color: var(--accent-primary);
  transition: width 1s linear;
  box-shadow: 0 0 6px var(--accent-primary);
}

.viewer-timer-bar.warning .timer-countdown {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulse-red-border 1.5s infinite alternate;
}

@keyframes pulse-red-border {
  0% { box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* Sections Progress Tracker Circles */
.viewer-progress-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: color 0.3s;
}

.progress-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s;
}

.progress-step.active {
  color: #ffffff;
}

.progress-step.active .progress-circle {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(219, 15, 25, 0.4);
}

.progress-step.completed {
  color: var(--accent-success);
}

.progress-step.completed .progress-circle {
  border-color: var(--accent-success);
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--accent-success);
}

.progress-line {
  flex: 1;
  max-width: 60px;
  min-width: 20px;
  height: 2px;
  background-color: var(--border-color);
  transition: background-color 0.3s;
}

.progress-line.completed {
  background-color: var(--accent-success);
}

.badge-section {
  background-color: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: #c7d2fe;
}

body[data-theme="light"] .badge-section {
  color: #493cd6;
  background-color: rgba(79, 70, 229, 0.08);
}

/* ==========================================
   LOGIN SCREEN LAYOUT
   ========================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #070a13;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

body[data-theme="light"] .login-overlay {
  background-color: #f1f5f9;
}

.login-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-xl);
}

body[data-theme="light"] .login-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.login-logo {
  display: inline-flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.login-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-heading);
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.btn-google {
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
  min-height: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
  background-color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.google-icon-svg {
  width: 20px;
  height: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
}

body[data-theme="light"] .user-avatar {
  border-color: rgba(0, 0, 0, 0.1);
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mock-login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
  margin-top: var(--space-md);
}

.chooser-account-item {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.chooser-account-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary) !important;
}
body[data-theme="light"] .chooser-account-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: var(--accent-primary) !important;
}

/* User Management Table Styles */
.user-table th {
  padding: 12px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  border-bottom: 2px solid var(--border-color);
}
.user-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.user-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}
body[data-theme="light"] .user-table tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* ==========================================
   CUSTOM DIALOG MODAL STYLES
   ========================================== */
.custom-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(7, 10, 19, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: dialogOverlayFadeIn 0.2s ease-out forwards;
}

#custom-dialog-overlay {
  z-index: 3000;
}

body[data-theme="light"] .custom-dialog-overlay {
  background-color: rgba(241, 245, 249, 0.75);
}

.custom-dialog-card {
  max-width: 480px;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-xl);
  animation: dialogScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-sizing: border-box;
}

body[data-theme="light"] .custom-dialog-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.share-dialog-card {
  max-width: 440px;
}

@keyframes dialogOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* AI Helper Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* AI Helper banner hover styling */
.ai-helper-banner {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-helper-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

/* ==========================================
   LIGHT MODE TEXT & UI CONTRAST OVERRIDES
   ========================================== */
body[data-theme="light"] .logo-text,
body[data-theme="light"] .form-card-title,
body[data-theme="light"] .section-title,
body[data-theme="light"] .viewer-q-title,
body[data-theme="light"] .summary-question-title,
body[data-theme="light"] .stat-value,
body[data-theme="light"] .ind-q-answer,
body[data-theme="light"] .share-dialog-header h3,
body[data-theme="light"] #custom-dialog-message {
  color: #0f172a !important;
}

body[data-theme="light"] .nav-link:hover {
  color: #0f172a !important;
}

body[data-theme="light"] .nav-link.active {
  color: #db0f19 !important;
}

body[data-theme="light"] .tab-btn:hover,
body[data-theme="light"] .tab-btn.active {
  color: #0f172a !important;
}

body[data-theme="light"] .choice-option:hover span {
  color: #000000 !important;
}

body[data-theme="light"] .app-footer {
  background-color: rgba(241, 245, 249, 0.9);
  border-top-color: rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .btn-secondary {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #475569;
}

body[data-theme="light"] .btn-secondary:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.3);
}

body[data-theme="light"] .custom-dialog-card input[type="text"],
body[data-theme="light"] .share-dialog-card input[type="text"] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

body[data-theme="light"] .share-qr-container img {
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

