@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');



/* Variáveis de cores */
:root {
  --bg: linear-gradient(135deg, #e0f7fa, #f5f7fa); /* fundo geral (gradiente suave) */
  --card-bg: #fff;        /* fundo dos cards */
  --primary: #007aff;    /* azul iOS */
  --danger: #ff3b30;     /* vermelho iOS */
  --border: #e5e5ea;     /* separador */
}

/* Fonte e background geral */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: #000;
  -webkit-font-smoothing: antialiased;
}

/* Container principal – mantido do public.css */
.main--article {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: left;
  color: #000;
}

/* Lista de compras */
.shopping-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 1rem;

}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.1s;
}

.item:hover {
  background: #f2f2f2;
  transform: scale(1.01);
}

}



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

.item-label {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.75rem;
  font-size: 1rem;
  color: #000;
}

.item-label input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--primary);
}

.delete-btn {
  background: var(--danger);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
}

.delete-btn:hover {background: var(--danger); opacity: 0.8;}

  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: opacity 0.2s;
}

.delete-btn:hover {opacity: 0.7;}

/* Campo de novo item */
.actions input[name="new_item"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

/* Botões estilo iOS */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-align: center;
  min-width: 100px;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {opacity: 0.9;}

.btn:active {transform: scale(0.97);}

.btn--primary {background: var(--primary); color: #fff;}
.btn--ghost {background: var(--border); color: #000;}

.actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Responsivo */
@media (max-width: 600px) {
  .main--article {padding: 1rem; border-radius: 14px;}
  h1 {font-size: 1.5rem;}
  .actions {flex-direction: column;}
  .actions .btn {width: 100%;}
  .actions input[name="new_item"] {width: 100%;}
/* Dark mode */
.dark-mode {
  --bg: #1e1e1e;
  --card-bg: #2c2c2c;
  --primary: #0a84ff;
  --danger: #ff453a;
  --border: #3a3a3c;
  color: #eee;
}
.dark-mode body {background: var(--bg); color: #eee; transition: background 0.3s;}

.dark-mode .main--article {background: var(--card-bg);}
.dark-mode .item-label {color: #eee;}
.dark-mode .btn--ghost {background: var(--border); color: #eee;}

}

