* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to right, #f8fbff, #f0f4ff);
  color: #2c3e50;
  line-height: 1.6;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  color: #1a73e8;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #555;
}

.container {
  max-width: 64rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.08);
}

section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #34495e;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

form input,
form select,
form button {
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  flex: 1 1 14rem;
  transition: all 0.3s ease;
}

form input:focus,
form select:focus {
  border-color: #1a73e8;
  outline: none;
}

form button {
  background-color: #1a73e8;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

form button:hover {
  background-color: #1669c1;
}

.filters label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: #f1f4f9;
  color: #555;
}

tr:hover {
  background-color: #f9fbff;
}

.charts canvas {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  margin-bottom: 2rem;
  background-color: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05);
}

.insights ul {
  list-style: none;
  padding: 0.5rem;
  color: #2d3436;
}

.insights li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 0.4rem;
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  form {
    flex-direction: column;
  }

  form input,
  form select,
  form button {
    flex: 1 1 100%;
  }

  .charts canvas {
    margin-bottom: 1.5rem;
  }
}
