/*body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding: 30px 20px;
  background: #f8f9fa;
}*/

.container {
  max-width: 930px;
  margin: 3.5rem auto; 
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  border-radius: 8px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #007bff;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .75rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .2s ease;
}

.stat:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.stat h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
  color: #333;
  flex: 1;
}

.stat p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #007bff;
  text-align: right;
  flex: 0;
  min-width: 60px;
}

.action-button {
  margin: 0 auto;
  text-align: center;
  width: 200px;
}

.action-button form {
  margin-top: 1rem;
  margin-bottom: 0;
}

.action-button input[type='text'] {
  padding: 8px;
  width: 250px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}

.action-button button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.action-button button[name='download_csv'] {
  background-color: #28a745;
}

.action-button button:hover {
  background-color: #c82333;
}

.action-button button[name='download_csv']:hover {
  background-color: #218838;
}

@media (max-width: 600px) {
  .stat {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .stat p {
    margin-top: .5rem;
    font-size: 1.4rem;
    text-align: left;
  }
}
