/* ══════════════════════════════════════════════════
   AGE CALCULATOR STYLESHEET
   Theme: Gold/Amber Premium Utilities Theme
   ══════════════════════════════════════════════════ */

: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.18);
  --tool-gold-hover: #b45309;
}

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

/* ─── TWO-COLUMN LAYOUT OVERRIDE ─── */
.tool-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── DATE AND TIME INPUTS ALIGNMENT ─── */
.inp-box input[type="date"],
.inp-box input[type="time"] {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

/* Calendar & Clock WebKit Picker Indicators */
.inp-box input[type="date"]::-webkit-calendar-picker-indicator,
.inp-box input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  filter: invert(0);
}

body.light .inp-box input[type="date"]::-webkit-calendar-picker-indicator,
body.light .inp-box input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(15,23,42,0.5)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

/* Time Input toggled section */
.time-input-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.time-input-container.open {
  max-height: 80px;
  margin-top: 12px;
}

/* Focus outline glow rules */
.inp-box:focus-within {
  border-color: var(--tool-gold);
  box-shadow: 0 0 0 3px var(--tool-gold-glow);
  background: rgba(255, 255, 255, 0.06);
}

body.light .inp-box:focus-within {
  background: #ffffff;
}

/* ─── 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);
}

/* ─── RESULT HERO CARD (Frosted Gold style) ─── */
.result-hero {
  background: linear-gradient(135deg, rgba(30, 25, 20, 0.45) 0%, rgba(20, 15, 10, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-left: 4px solid var(--tool-gold);
  border-radius: 16px;
  padding: 20px 24px;
  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: 12px;
  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(245, 158, 11, 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(245, 158, 11, 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0;
}

.age-hero-text {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  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.25));
}

body.light .age-hero-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.18));
}

.age-hero-subtext {
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  letter-spacing: 0.2px;
}

body.light .age-hero-subtext {
  color: rgba(15, 23, 42, 0.7);
}

.birthday-weekday-lbl {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 8px;
  margin-bottom: 4px;
}

.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;
}

/* ─── COPY 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);
}

/* ─── BIRTHDAY COUNTDOWN ─── */
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  transition: all 0.2s ease;
}

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

.countdown-num {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--tool-gold);
  line-height: 1.1;
}

.countdown-lbl {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Progress bar tracking current age year percentage completed */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}

body.light .progress-bar-wrap {
  background: rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tool-gold) 0%, #d97706 100%);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── METRICS GRID ─── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light .metric-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.metric-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

body.light .metric-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.metric-lbl {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ─── ASTROLOGICAL FACTS GRID ─── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fact-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

body.light .fact-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

.fact-item:hover {
  border-color: rgba(245, 158, 11, 0.25);
}

.fact-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.light .fact-icon {
  background: rgba(0, 0, 0, 0.02);
}

.fact-details {
  min-width: 0;
}

.fact-val {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact-lbl {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
  font-weight: 600;
}

/* Hearts beating animations for milestone stats */
@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

.beating-heart {
  display: inline-block;
  animation: heartBeat 1.2s infinite;
  color: #ef4444;
}

/* ─── SAVED PROFILES GRID / TABLE ─── */
.select-row-cb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--tool-gold);
}

.comparison-result-panel {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(217, 119, 6, 0.01) 100%);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.light .comparison-result-panel {
  background: rgba(245, 158, 11, 0.02);
  border-color: rgba(217, 119, 6, 0.3);
}

.comparison-header {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--tool-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-text {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-top: 10px;
}

.comparison-text strong {
  color: var(--text);
}

/* History table visual standards */
.table-responsive {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.history-table th {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

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

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

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

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

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

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

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

.delete-profile-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.delete-profile-btn:hover {
  color: #ef4444;
}

/* Buttons style overrides */
.rb-btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
  transition: all 0.3s ease;
}

.rb-btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

/* Responsive breakdowns */
@media (max-width: 768px) {
  .countdown-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .planetary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ─── PLANETARY SPACE GRID ─── */
.planetary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.planetary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

body.light .planetary-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.planetary-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.05);
}

.planet-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.planet-name {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.planet-age {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--tool-gold);
  margin: 6px 0;
}

.planet-countdown {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  color: var(--text-2);
  font-weight: 600;
}

/* ─── CHRONOLOGICAL LIFE MILESTONES ─── */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

body.light .milestone-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

.milestone-item.reached {
  border-left: 4px solid #10b981;
}

.milestone-item.upcoming {
  border-left: 4px solid var(--tool-gold);
}

.milestone-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.milestone-check {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-check.reached {
  color: #10b981;
}

.milestone-check.upcoming {
  color: var(--text-3);
}

.milestone-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.milestone-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.milestone-date {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.milestone-status {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.milestone-status.reached {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.milestone-status.upcoming {
  background: var(--tool-gold-soft);
  color: var(--tool-gold);
  border: 1px solid var(--tool-gold-glow);
}

