/* Number to Words Page Styles */

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ─── COLOR VARIABLES OVERRIDES ─── */
:root {
  --tool-gold: #f59e0b;
  --tool-gold-soft: rgba(245, 158, 11, 0.12);
  --tool-gold-glow: rgba(245, 158, 11, 0.25);
  --tool-gold-hover: #d97706;
}

body.light {
  --tool-gold: #d97706;
  --tool-gold-soft: rgba(217, 119, 6, 0.08);
  --tool-gold-glow: rgba(217, 119, 6, 0.15);
  --tool-gold-hover: #b45309;
}

/* ─── MODE TABS (Gold Style) ─── */
.mode-toggle {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  z-index: 1;
}

body.light .mode-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.mode-toggle::before {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  border-radius: 8px;
  background: var(--tool-gold-soft);
  border: 1px solid var(--tool-gold-glow);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), background 0.28s, border-color 0.28s;
  z-index: 0;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

body.light .mode-toggle::before {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#system-toggle.mode-toggle::before {
  width: calc(50% - 6px);
}
#system-toggle.mode-toggle.active-indian::before {
  transform: translateX(0);
}
#system-toggle.mode-toggle.active-intl::before {
  transform: translateX(calc(100% + 4px));
}

.mode-btn {
  flex: 1;
  position: relative;
  background: transparent !important;
  border: none;
  padding: 8px 12px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.28s ease, transform 0.2s;
  z-index: 1;
  box-shadow: none !important;
  text-align: center;
}

.mode-btn:hover {
  color: var(--text-2);
}

body.light .mode-btn {
  color: #556b82;
}

body.light .mode-btn:hover {
  color: #0f172a;
}

.mode-btn.active {
  background: transparent !important;
  color: var(--tool-gold) !important;
  font-weight: 700;
  box-shadow: none !important;
}

body.light .mode-btn.active {
  color: var(--tool-gold-hover) !important;
}

.mode-btn:active {
  transform: scale(0.97);
}

/* ─── OPTION CARDS (Gold Style) ─── */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.filter-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.filter-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  color: var(--text);
}

body.light .filter-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
  color: #334155;
}

body.light .filter-card:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
}

.filter-card.active {
  background: var(--tool-gold-soft) !important;
  border: 1.5px solid var(--tool-gold-glow) !important;
  color: var(--tool-gold) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.light .filter-card.active {
  background: #ffffff !important;
  border-color: var(--tool-gold) !important;
  color: var(--tool-gold-hover) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* ─── SWITCH TOGGLE ─── */
.switch, .fg label.switch {
  position: relative;
  display: inline-block !important;
  width: 44px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.switch input:checked + .switch-slider {
  background-color: var(--tool-gold);
  border-color: var(--tool-gold-soft);
}

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

body.light .switch-slider {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ─── PREMIUM CTA BUTTONS (Gold) ─── */
.rb-btn-primary {
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold-glow) !important;
  color: var(--tool-gold) !important;
}

.rb-btn-primary:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: var(--tool-gold-hover) !important;
}

body.light .rb-btn-primary {
  background: var(--tool-gold-soft) !important;
  border-color: var(--tool-gold-glow) !important;
  color: var(--tool-gold) !important;
}

body.light .rb-btn-primary:hover {
  background: rgba(217, 119, 6, 0.12) !important;
  color: var(--tool-gold-hover) !important;
}

/* ─── INPUT BOXES (Gold focus ring overrides) ─── */
.inp-box:focus-within {
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

body.light .inp-box:focus-within {
  border-color: rgba(217, 119, 6, 0.55) !important;
  background: rgba(217, 119, 6, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.10) !important;
}

/* Copy Words Clipboard Action button */
.copy-action-btn {
  width: 100%;
  padding: 12px 16px;
  margin-top: 14px;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.copy-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body.light .copy-action-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-2);
}

body.light .copy-action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}



/* ─── RESULT HERO OVERRIDES (Gold glow style) ─── */
.result-hero {
  background: linear-gradient(135deg, rgba(25, 20, 10, 0.45) 0%, rgba(15, 12, 5, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-left: 4px solid var(--tool-gold);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 25px rgba(245, 158, 11, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 180px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
}

.result-hero:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 35px rgba(245, 158, 11, 0.08);
}

body.light .result-hero {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-left: 4px solid var(--tool-gold);
  box-shadow: 
    0 16px 36px rgba(217, 119, 6, 0.05), 
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

body.light .result-hero:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 20px 40px rgba(217, 119, 6, 0.08), 
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.result-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, var(--tool-gold-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.result-hero * {
  z-index: 1;
}

.converted-words-container {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.words-output-text {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.2));
}

body.light .words-output-text {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px rgba(217, 119, 6, 0.15));
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: var(--tool-gold-soft);
  border: 1px solid var(--tool-gold-glow);
  color: var(--tool-gold);
}

body.light .status-badge {
  background: var(--tool-gold-soft);
  border-color: rgba(217, 119, 6, 0.2);
  color: var(--tool-gold);
  box-shadow: none;
}

/* Place Value Breakdown CSS declarations */
.breakdown-table th {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  padding: 8px;
}

.breakdown-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

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

/* ─── HISTORY TABLE & LOGS PANEL ─── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 14px;
}

body.light .table-responsive {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.01);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.history-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

body.light .history-table th {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  vertical-align: middle;
}

body.light .history-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04);
  color: #334155;
}

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

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

body.light .history-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

.action-column {
  white-space: nowrap;
}

.delete-entry-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.delete-entry-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

body.light .delete-entry-btn {
  color: #64748b;
}

body.light .delete-entry-btn:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}



