/* Money Counter App - Modern, Elegant, Mobile-First */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #f7f9fa 100%);
  margin: 0;
  color: #222;
}
.container {
  max-width: 430px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(60, 80, 180, 0.1);
}
h1 {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #2a4d8f;
}
.denom-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
  gap: 0.7rem;
  background: linear-gradient(90deg, #f0f4ff 60%, #e3eafc 100%);
  border-radius: 1.1rem;
  box-shadow: 0 2px 8px rgba(60, 80, 180, 0.06);
  padding: 0.7rem 0.7rem 0.7rem 1rem;
  transition: box-shadow 0.2s;
}
.denom-row:focus-within {
  box-shadow: 0 4px 16px rgba(60, 80, 180, 0.13);
}
.denom-label {
  flex: 1 1 50%;
  font-size: 1.13rem;
  color: #2a4d8f;
  font-weight: 500;
}
.denom-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.denom-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #b6c9f7 0%, #e3eafc 100%);
  color: #2a4d8f;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(60, 80, 180, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.denom-btn:active {
  background: #8faeea;
  box-shadow: 0 2px 8px rgba(60, 80, 180, 0.13);
}
.denom-input {
  width: 3.5rem;
  text-align: center;
  font-size: 1.1rem;
  border: 1.5px solid #b6c9f7;
  border-radius: 0.7rem;
  padding: 0.3rem 0.2rem;
  background: #f7f9fa;
  color: #2a4d8f;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(60, 80, 180, 0.04);
  transition: border 0.2s, box-shadow 0.2s;
}
.denom-input:focus {
  border: 1.5px solid #2a4d8f;
  outline: none;
  box-shadow: 0 2px 8px rgba(60, 80, 180, 0.13);
}
#totals-section {
  margin-top: 2.2rem;
}
#totals-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  margin-top: 0.5rem;
}
#totals-table th,
#totals-table td {
  padding: 0.6rem 0.3rem;
  text-align: left;
}
#totals-table tr {
  background: linear-gradient(90deg, #e3eafc 60%, #f0f4ff 100%);
  border-radius: 0.7rem;
}
#totals-table tr.grand-total td {
  font-weight: bold;
  font-size: 1.18rem;
  border-top: 2px solid #b6c9f7;
  color: #2a4d8f;
  background: linear-gradient(90deg, #b6c9f7 60%, #e3eafc 100%);
}
@media (max-width: 500px) {
  .container {
    padding: 1rem 0.2rem 1.5rem 0.2rem;
  }
  h1 {
    font-size: 1.3rem;
  }
  .denom-label {
    font-size: 1rem;
  }
  .denom-row {
    padding: 0.5rem 0.4rem 0.5rem 0.7rem;
  }
}
