/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f6fa;
  color: #2f3640;
  line-height: 1.6;
}

a {
  color: #0097e6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background-color: #2f3640;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* Container Principal */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* Cards de Métricas */
.metrics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.card {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  margin-bottom: 10px;
  color: #2f3640;
}
.card p {
  font-size: 1.6rem;
  font-weight: bold;
}

/* Formulário */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
form input,
form select,
form button {
  padding: 10px;
  font-size: 1rem;
}
form button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: background 0.2s;
}
form button[type="submit"] {
  background-color: #44bd32;
  color: #fff;
}
form button[type="submit"]:hover {
  background-color: #4cd137;
}
form button#resetBtn {
  background-color: #e84118;
  color: #fff;
}
form button#resetBtn:hover {
  background-color: #ff5e57;
}

/* Filtros */
.filter-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-section input,
.filter-section select {
  padding: 10px;
  font-size: 1rem;
  flex: 1;
  min-width: 150px;
}

/* Tabela */
.table-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
table th,
table td {
  padding: 10px;
  border: 1px solid #dcdde1;
  text-align: left;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}
.badge.EmEstoque {
  background-color: #44bd32;
}
.badge.BaixoEstoque {
  background-color: #fbc531;
}
.badge.Esgotado {
  background-color: #e84118;
}
.badge.EmPreparação {
  background-color: #8c7ae6;
}

/* Botões ação */
button.send-btn {
  background-color: #0097e6;
  color: white;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin: 2px 0;
}
button.send-btn:hover {
  background-color: #00a8ff;
}

/* Dashboard Gráficos */
.dashboard-section {
  margin-top: 40px;
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.chart-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: #2f3640;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}
footer a {
  color: #44bd32;
}

/* Badge de alerta */
.badge.BaixoEstoque {
  background-color: #fbc531;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
