/* ═══════════════════════════════════════════════════════════════
   California Tax Estimator — Custom Styles
   
   Supplements Tailwind CSS with animations and specific overrides.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fade-in animation for results ─── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out;
}

/* ─── Smooth number input appearance ─── */
input[type="text"]:focus {
  outline: none;
}

/* ─── Hide native number input spinners ─── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ─── Tabular numbers for financial data ─── */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ─── Receipt card print styles ─── */
@media print {
  header, footer, .no-print {
    display: none !important;
  }
  body {
    background: white !important;
  }
  #results-section {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ─── Smooth transitions on interactive elements ─── */
button {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Scrollbar styling (Webkit) ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ─── Selection color ─── */
::selection {
  background-color: #bfdbfe;
  color: #1e3a8a;
}
