body {
  font-family: Arial, sans-serif;
  background-color: #f4f7f6;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

.container {
  width: 100%;
  max-width: 960px;
  padding: 20px;
  box-sizing: border-box;
}

.card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-bottom: 20px;
}

.card h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.card p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
}

.card input[type="email"],
.card input[type="password"],
.card input[type="text"],
.card input[type="number"],
.card textarea,
.card select {
  width: calc(100% - 20px);
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.card button {
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  width: 100%;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.card button:hover {
  background-color: #218838;
}

.card button.secondary {
  background-color: #007bff;
}

.card button.secondary:hover {
  background-color: #0056b3;
}

.card button.danger {
  background-color: #dc3545;
}

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

.error-message {
  color: #dc3545;
  margin-top: 10px;
  font-weight: bold;
}

.success-message {
  color: #28a745;
  margin-top: 10px;
  font-weight: bold;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.list-container {
  margin-top: 20px;
  text-align: left;
}

.list-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.list-item span {
  flex: 1;
  min-width: 150px;
  margin-bottom: 5px;
}

.list-item .actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.list-item .actions button {
  width: auto;
  padding: 8px 12px;
  font-size: 0.9em;
  margin-bottom: 0;
}

.dashboard-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background-color: #e9ecef;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.stat-card h3 {
  margin-top: 0;
  color: #555;
}

.stat-card p {
  font-size: 2em;
  font-weight: bold;
  color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    margin: 20px auto;
    padding: 20px;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item .actions {
    width: 100%;
    justify-content: flex-end;
  }

  .dashboard-stats {
    flex-direction: column;
  }

  .stat-card {
    width: 100%;
  }
}

