/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BASE ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  padding: 40px;
}

/* ===== HEADINGS ===== */
h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #1f2937;
}

h2 {
  margin-bottom: 16px;
  font-size: 18px;
  color: #111827;
}

/* ===== SECTIONS / CARDS ===== */
section {
  background: #ffffff;
  padding: 24px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== FORM ELEMENTS ===== */
input,
select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}
.field-error {
  color: #dc2626;
  font-size: 12px;
  margin-bottom: 8px;
  display: block;
}


input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
}

/* ===== BUTTONS ===== */
button {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background-color: #1e40af;
}

/* Delete button */
button.danger {
  background-color: #dc2626;
}

button.danger:hover {
  background-color: #b91c1c;
}

/* ===== ERROR TEXT ===== */
#error {
  margin-top: 8px;
  color: #dc2626;
  font-size: 14px;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* ===== ATTENDANCE LIST ===== */
#attList {
  margin-top: 12px;
  list-style: none;
}

#attList li {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }
}
