/* Custom styles for Finance Tools */

/* Ensure tables are scrollable on small screens */
.table-responsive {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
}

/* Make amortization tables more readable */
.table-sm td, .table-sm th {
  padding: 0.5rem;
}

/* Results section styling */
.results-section {
  margin-top: 2rem;
}

/* Card styling for results */
.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Alert styling */
.alert {
  border-radius: 0.375rem;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  /* Reduce padding on mobile */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Make form controls more touch-friendly */
  .form-control-lg,
  .form-select-lg {
    font-size: 1rem;
    padding: 0.75rem;
  }

  /* Improve table readability on mobile */
  .table {
    font-size: 0.875rem;
  }

  .table td,
  .table th {
    padding: 0.5rem 0.25rem;
  }

  /* Ensure buttons are full width on very small screens */
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  /* Reduce heading sizes on mobile */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Stack cards better on mobile */
  .card-body {
    padding: 1rem;
  }
}

/* Very small screens (phones in portrait) */
@media (max-width: 576px) {
  /* Further reduce table text */
  .table {
    font-size: 0.75rem;
  }

  /* Make alerts more compact */
  .alert {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  /* Adjust navbar brand */
  .navbar-brand {
    font-size: 1rem;
  }
}
