/**
 * DaysAndDates.com - Calculator Suite Styles
 * Form controls, tabs, results boxes, and countdown digits
 */

.calc-tab-btn {
  padding: 0.45rem 0.95rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.calc-tab-btn:hover {
  color: var(--text-primary);
}

.calc-tab-btn.is-active {
  background: var(--surface-base);
  color: var(--brand-primary);
  box-shadow: var(--shadow-xs);
  font-weight: 700;
}

.calculator-panel {
  overflow: hidden;
}

.calc-tool-view {
  display: none;
}

.calc-tool-view.is-active {
  display: block;
}

/* Custom Styled Input Controls */
.dnd-input {
  background: var(--surface-base);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dnd-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
  background: var(--surface-base);
  color: var(--text-primary);
}

.calc-result-box {
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.calc-hero-stat {
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
}

.countdown-tile {
  background: var(--surface-base);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.countdown-digit {
  line-height: 1;
  margin-bottom: 0.35rem;
}

/* Database event suggestions for the home page countdown. */
.countdown-event-suggestions {
  max-height: 18rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-sm);
}

.countdown-event-suggestions[hidden] {
  display: none !important;
}

.countdown-event-suggestions .list-group-item {
  white-space: normal;
  text-align: left;
}

.countdown-event-suggestions .list-group-item small {
  display: block;
}
