/* Modern typography beállítások */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  /* Fix, költségvetés témájú háttér (Pexels) */
  background: url('https://images.pexels.com/photos/4386339/pexels-photo-4386339.jpeg?auto=compress&cs=tinysrgb&w=1600') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Poppins', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}
.container {
  padding-top: 50px;
  padding-bottom: 50px;
}
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.95);
}
.card-header {
  background-color: transparent;
  border-bottom: none;
  font-size: 1.5rem;
  font-weight: 600;
  color: #007bff;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-body {
  padding: 2rem;
}
/* === Modern gombok === */
.btn {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.9rem;
  color: #fff;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              filter 0.25s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn:focus-visible {
  outline: 3px solid rgba(0, 123, 255, 0.4);
  outline-offset: 2px;
}

/* Primary (Számolás) */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #3a93ff 0%, #0062ff 100%);
  box-shadow: 0 6px 18px rgba(0, 98, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(0, 98, 255, 0.45);
}

/* Danger (Nullázás) */
.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background: linear-gradient(135deg, #ff6b7d 0%, #e11d2e 100%);
  box-shadow: 0 6px 18px rgba(225, 29, 46, 0.32);
}
.btn-danger:hover {
  box-shadow: 0 12px 26px rgba(225, 29, 46, 0.42);
}

/* Kattintási hullám-effekt (ripple) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  animation: ripple-anim 0.6s ease-out;
}
@keyframes ripple-anim {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.form-control {
  border-radius: 50px;
  border: 1px solid #ddd;
  transition: box-shadow 0.3s ease;
}
.form-control:focus {
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}
/* Modern stílus a Költségösszegző kártyán – bevitel */
.expense-section {
  margin-bottom: 1.5rem;
  text-align: center;
}
.expense-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.expense-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Kiemelt számok a költségösszegző mezőkben */
.expense-container input[type="number"] {
  font-weight: bold;
  color: #007bff; /* élénk kék árnyalat */
  font-size: 1.2rem;
  max-width: 200px;
  text-align: center;
}
.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern elrendezés a Számoló kártyán */
.totals {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.total-item {
  background:rgb(202, 211, 245);
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 5px;
  min-width: 150px;
  text-align: center;
}
/* A számértékek megjelenítésére használt betűtípus */
#eda-total,
#zoli-total {
  font-family: "Courier New", Courier, monospace;
}
/* Modern megjelenés az eredménynek (tartozás összege) – alapértelmezett stílus */
#calc-result {
  font-family: "Roboto Mono", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  text-align: center;
}
/* Mobilra optimalizált stílusok */
@media (max-width: 576px) {
  .card-body {
    padding: 1rem;
  }
  #calc-result {
    font-size: 2rem;
  }
  .card-header {
    font-size: 1.25rem;
  }
  .total-item {
    font-size: 1.25rem;
    padding: 8px 15px;
  }
  .expense-label {
    font-size: 1.1rem;
  }
}
