/* Table styles */
.breakdown-table {
  width: 100%;
  margin-bottom: 20px;
  font-size: 1rem;
}

.breakdown-table th, 
.breakdown-table td {
  padding: 2px 6px;
  text-align: left;
  white-space: nowrap;
}

.breakdown-table th {
  background-color: #f0f0f0;
  font-size: 0.875rem;
}

/* Button states */
.bg-light-blue {
  background-color: #e5e7eb;
  color: #1a2027;
}

.bg-selected-blue {
  background-color: #007bff;
  color: #ffffff;
}

.text-dark-blue {
  color: #1a2027;
}

/* Savings display */
.savings-cell {
  background-color: #d0eaff;
  font-weight: bold;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

/* Slider - critical for iOS touch functionality */
input[type="range"] {
  -webkit-appearance: none;
  height: 20px;
  border-radius: 10px;
  background: #e5e7eb;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  border: 1px solid white;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  border: 1px solid white;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* Display elements */
.income-display {
  font-size: 1.25rem;
  font-weight: bold;
  color: #007bff;
  text-align: center;
  margin: 0.5rem 0;
}

.header-sticky {
  position: sticky;
  top: 0;
  background-color: #f9f9f9;
  z-index: 10;
  padding: 0.5rem;
  margin-bottom: 0.2rem;
}

/* Links */
a {
  color: blue;
  text-decoration: underline;
}

.separator {
  margin: 0 2px;
  color: #aaa;
}
