:root {
  --color-verde: #72baa9;
  --color-amarillo: #ffeb3b;
  --color-naranja: #ff9800;
  --color-rojo: #f44336;
  --color-fondo: #474e93;
  --color-titulo: #7e5cad;
  --color-card: #d5e7b5;
  --summer-yellow: #fff3b0;
  --summer-orange: #ff6b35;
  --summer-blue: #5da9e9;
  --summer-green: #6a994e;
}

/* Base y contenedores principales */
body {
  font-family: "Roboto", sans-serif;
  background: var(--color-fondo);
  margin: 0;
  padding: 20px;
  color: #333;
  font-size: 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: var(--color-card);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.title {
  text-align: center;
  color: var(--color-rojo);
  font-size: 2em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0px white;
}

.cars {
  background: white;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reminders {
  background: #ffd6a5;
  padding: 15px;
  border-radius: 15px;
  margin: 20px 0;
  border: 2px dashed var(--summer-orange);
}

/* Pestañas de categorías */
.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 15px;
}

.tab {
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--summer-blue);
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
  font-size: 0.9em;
}

.tab:hover {
  background: var(--summer-green);
}

.active-tab {
  background: var(--summer-orange);
}

/* Formulario y entradas */
.form-container {
  background: white;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input,
select,
button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 2px solid var(--summer-green);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1em;
}

button {
  background: var(--summer-green);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: var(--summer-orange);
}

/* Listado de ítems */
.item-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 15px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

.item {
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.item div:first-child {
  max-width: 65%;
}

.item-actions {
  display: flex;
  gap: 5px;
}

.item-actions button {
  margin-left: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 0.8em;
}

.item-actions button:hover {
  opacity: 0.8;
}

/* Sección de división (gastos de auto, etc.) */
.division-section {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid var(--summer-blue);
}

/* Balance de usuario */
.user-balance {
  padding: 8px;
  margin: 5px 0;
  border-radius: 5px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Elementos adicionales */
.blurred {
  filter: blur(8px);
  pointer-events: none;
  transition: filter 0.3s ease;
}

/* Custom checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  margin-top: 10px;
}

.custom-checkbox input[type="checkbox"] {
  transform: scale(1.5);
  accent-color: var(--summer-green);
}

/* Registered profiles */
.registered-profiles {
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-item {
  padding: 5px;
  margin: 5px 0;
  border-bottom: 1px solid #ddd;
}

.profile-item:last-child {
  border-bottom: none;
}

/* Custom radio buttons */
.custom-radio {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-radio label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border: 2px solid var(--summer-green);
  border-radius: 8px;
  transition: background 0.3s, border 0.3s;
}

.custom-radio input[type="radio"] {
  display: none;
}

.radio-button {
  margin-left: 10px;
}

.custom-radio input[type="radio"]:checked + .radio-button {
  background: var(--summer-green);
  color: white;
  border-color: var(--summer-orange);
}

.radio-button::before {
  content: "🍹";
  margin-right: 5px;
}

.radio-button:nth-of-type(2)::before {
  content: "🚫";
}

.selected {
  background-color: #ffd6a5;
}

/* User details (opcional) */
.user-details {
  background: #f0f8ff;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--color-verde);
}

.user-details h5 {
  margin: 0;
  color: var(--color-rojo);
  text-align: center;
}

.user-details p {
  margin: 5px 0;
  color: #555;
}

/* Purchase items list (opcional) */
.items-list {
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.purchase-item {
  margin: 5px 0;
  padding: 5px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Resumen de división en #purchaseList */
#purchaseList p {
  font-weight: bold;
  color: var(--color-verde);
}

#purchaseList h5 {
  color: var(--color-rojo);
  text-align: center;
}

#purchaseList p {
  margin: 5px 0;
  color: #333;
  text-align: center;
}

/* Íconos */
.icon {
  margin-right: 5px;
  vertical-align: middle;
}

/* Tarjetas de usuario */
.user-card {
  background: var(--color-card);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.user-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.user-card h5 {
  margin: 0;
  color: var(--color-titulo);
}

.user-card p {
  margin: 5px 0;
  color: #333;
}

/* Aclaraciones y explicaciones */
.aclaraciones {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.aclaraciones:hover {
  transform: scale(1.02);
}

.aclaraciones h4 {
  color: var(--color-titulo);
  text-align: center;
  font-family: "Arial", sans-serif;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.aclaraciones p {
  color: #333;
  text-align: center;
  margin: 5px 0;
  font-family: "Arial", sans-serif;
  line-height: 1.5;
}

/* Sección de deudas y balances */
.debt-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.debt-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.debt-header {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.debt-header h4 {
  margin: 0;
  flex-grow: 1;
  font-size: 1.1em;
}

.debt-header span {
  padding: 8px;
  border-radius: 8px;
  font-size: 1.2em;
}

.balance-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
}

.balance-status.positive {
  background: #c8e6c9;
  color: #2e7d32;
}

.balance-status.negative {
  background: #ffcdd2;
  color: #c62828;
}

.debt-list {
  padding: 15px;
  background: #f8f9fa;
}

.debt-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.debt-item:last-child {
  border-bottom: none;
}

.debt-amount {
  font-weight: bold;
  color: #c62828;
}

.debt-reason {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.item-category {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}

.item-category.food {
  background: #fff3e0;
  color: #ef6c00;
}

.item-category.drink {
  background: #e3f2fd;
  color: #1565c0;
}

.no-debt {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Leyenda */
.leyenda {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
}

.food-dot,
.drink-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.food-dot {
  background: #ef6c00;
}

.drink-dot {
  background: #1565c0;
}
/* Estilos generales */
:root {
  --color-verde: #72baa9;
  --color-amarillo: #ffeb3b;
  --color-naranja: #ff9800;
  --color-rojo: #f44336;
  --color-fondo: #474e93;
  --color-titulo: #7e5cad;
  --color-card: #d5e7b5;
  --summer-yellow: #fff3b0;
  --summer-orange: #ff6b35;
  --summer-blue: #5da9e9;
  --summer-green: #6a994e;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--color-fondo);
  margin: 0;
  padding: 20px;
  color: #333;
  font-size: 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #d5e7b5;
}

.title {
  text-align: center;
  color: var(--color-rojo);
  font-size: 2em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0px white;
}

/* ... (resto de estilos generales) */

/* Estilos para celulares (media query) */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 10px; /* Reduce el padding en pantallas pequeñas */
  }

  .container {
    padding: 10px; /* Reduce el padding del contenedor */
  }

  .title {
    font-size: 1.5em; /* Reduce el tamaño del título */
    margin-bottom: 10px;
  }

  .cars,
  .reminders,
  .form-container,
  .item-list,
  .division-section,
  .aclaraciones {
    padding: 10px; /* Reduce el padding de las secciones */
    margin-bottom: 10px; /* Reduce el margen inferior */
  }

  .category-tabs {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Dos columnas en pantallas pequeñas */
    gap: 5px; /* Reduce el espacio entre las pestañas */
    margin-bottom: 10px;
  }

  .tab {
    padding: 8px; /* Reduce el padding de las pestañas */
    font-size: 0.9em; /* Reduce el tamaño de la fuente */
  }

  input,
  select,
  button {
    padding: 8px; /* Reduce el padding de los elementos del formulario */
    font-size: 0.9em; /* Reduce el tamaño de la fuente */
  }

  .item-list {
    grid-template-columns: repeat(
      1,
      1fr
    ); /* Una columna en pantallas pequeñas */
    gap: 5px; /* Reduce el espacio entre los items */
  }

  .item {
    flex-direction: column; /* Dirección vertical en pantallas pequeñas */
    align-items: flex-start; /* Alinea los items al inicio */
  }

  .item div:first-child {
    max-width: 100%; /* Ocupa todo el ancho en pantallas pequeñas */
    margin-bottom: 5px; /* Espacio entre los elementos del item */
  }

  .item-actions {
    margin-top: 5px; /* Espacio entre los botones */
    justify-content: flex-end; /* Alinea los botones al final */
    width: 100%; /* Ocupa todo el ancho */
  }

  .debt-container {
    grid-template-columns: repeat(
      auto-fill,
      minmax(250px, 1fr)
    ); /* Ajusta el ancho mínimo de las tarjetas */
    gap: 10px; /* Reduce el espacio entre las tarjetas */
  }

  .debt-card,
  .credit-card {
    padding: 10px; /* Reduce el padding de las tarjetas */
  }

  .debt-header {
    flex-direction: column; /* Dirección vertical en pantallas pequeñas */
    align-items: flex-start; /* Alinea los elementos al inicio */
    gap: 5px; /* Reduce el espacio entre los elementos */
  }

  .debt-header h4 {
    font-size: 1.1em; /* Reduce el tamaño del título */
  }

  .debt-list {
    padding: 10px; /* Reduce el padding de la lista de deudas */
  }

  .debt-item {
    padding: 8px 0; /* Reduce el padding de los items de deuda */
  }

  .debt-amount {
    font-size: 0.9em; /* Reduce el tamaño de la fuente */
  }

  .debt-reason {
    font-size: 0.8em; /* Reduce el tamaño de la fuente */
  }

  .no-debt {
    font-size: 0.9em; /* Reduce el tamaño de la fuente */
    padding: 10px; /* Reduce el padding del mensaje */
  }

  .leyenda {
    flex-direction: column; /* Dirección vertical en pantallas pequeñas */
    align-items: center; /* Alinea los elementos al centro */
    gap: 10px; /* Reduce el espacio entre los elementos */
  }

  .leyenda-item {
    font-size: 0.8em; /* Reduce el tamaño de la fuente */
  }

  /* ... (resto de estilos para celulares) */
}
