/* ===========================
   RESET E BASE
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #2c3e50;
  line-height: 1.6;
}

/* ===========================
   LINKS
=========================== */
a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   HEADER
=========================== */
header {
  background-color: #34495e;
  color: #ecf0f1;
  padding: 25px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.9rem;
}

/* ===========================
   CONTAINER PRINCIPAL
=========================== */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ===========================
   CARDS DE MÉTRICAS
=========================== */
.metrics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.card {
  background: linear-gradient(135deg, #2980b9, #3498db);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.card p {
  font-size: 1.8rem;
  font-weight: bold;
}

/* ===========================
   FORMULÁRIO DE PRODUTO
=========================== */
.form-section {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.form-section h2 {
  margin-bottom: 20px;
  color: #34495e;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

form input, form button {
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

form input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52,152,219,0.3);
}

form button {
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

form button[type="submit"] {
  background-color: #2ecc71;
  color: #fff;
}

form button[type="submit"]:hover {
  background-color: #27ae60;
}

form button#resetBtn {
  background-color: #e74c3c;
  color: #fff;
}

form button#resetBtn:hover {
  background-color: #c0392b;
}

/* ===========================
   FILTROS
=========================== */
.filter-section {
  margin-bottom: 25px;
}

.filter-section input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.filter-section input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52,152,219,0.3);
}

/* ===========================
   TABELA DE PRODUTOS
=========================== */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}

table th {
  background-color: #2980b9;
  color: #fff;
  font-weight: 600;
}

table tr:hover {
  background-color: #f1f6f9;
}

button.send-btn {
  background-color: #3498db;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-right: 5px;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

button.send-btn:hover {
  background-color: #2980b9;
}

/* ===========================
   DASHBOARD DE GRÁFICOS
=========================== */
.dashboard-section {
  margin-top: 40px;
}

.dashboard-section h2 {
  margin-bottom: 25px;
  color: #34495e;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.chart-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ===========================
   FOOTER
=========================== */
footer {
  background-color: #34495e;
  color: #ecf0f1;
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
  border-top: 3px solid #2ecc71;
}

footer a {
  color: #2ecc71;
  font-weight: bold;
}

footer a:hover {
  color: #27ae60;
}
