/* General Page Styling */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 0;
}

/* Centered Container */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* Headings */
h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
}

/* Inputs and Textarea */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
}

/* Buttons */
button {
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background: #0056b3;
}

/* Error message */
.error {
  color: red;
  text-align: center;
}

/* Admin Panel Buttons */
a.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin: 10px 5px;
  transition: 0.3s ease;
}

a.button:hover {
  background-color: #218838;
}

/* Data Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px 15px;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  background-color: #060607;
  color: white;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .container {
    margin: 10px;
    padding: 15px;
  }

  table, th, td {
    font-size: 14px;
  }

  form {
    width: 100%;
  }
}
