* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background: #f0f2f5; color: #1c1e21; }

.login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-card { background: white; padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.login-card h2 { margin-bottom: 1.5rem; text-align: center; color: #0b1d3a; }

.admin-header { background: #0b1d3a; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.admin-container { max-width: 1250px; margin: 2rem auto; padding: 0 1rem; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.admin-card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.admin-card h3 { margin-bottom: 1rem; color: #0b1d3a; border-bottom: 2px solid #f0f2f5; padding-bottom: 0.5rem; }

.form-group { margin-bottom: 1rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
input[type="text"], input[type="password"], input[type="file"] { width: 100%; padding: 0.65rem; border: 1px solid #ccc; border-radius: 4px; }

.btn { padding: 0.65rem 1.2rem; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; display: inline-block; text-align: center; }
.btn.primary { background: #0b1d3a; color: #d4af37; width: 100%; }
.btn.secondary { background: #0077b6; color: white; width: 100%; }
.btn.danger-sm { background: #d32f2f; color: white; text-decoration: none; padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.85rem; margin-left: 1rem; }

/* Table Action Buttons */
.btn.link-btn { background: #e3f2fd; color: #0d47a1; text-decoration: none; padding: 0.35rem 0.65rem; border-radius: 4px; font-size: 0.8rem; margin-right: 3px; }
.btn.link-btn:hover { background: #bbdefb; }

.btn.print-btn { background: #e8f5e9; color: #2e7d32; text-decoration: none; padding: 0.35rem 0.65rem; border-radius: 4px; font-size: 0.8rem; margin-right: 3px; font-weight: 600; }
.btn.print-btn:hover { background: #c8e6c9; }

.btn.delete-btn { background: #ffebee; color: #c62828; padding: 0.35rem 0.65rem; font-size: 0.8rem; border: none; cursor: pointer; }
.btn.delete-btn:hover { background: #ffcdd2; }

/* Table Styling */
.table-card { margin-top: 1.5rem; }
.table-container { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 0.75rem 0.6rem; text-align: left; border-bottom: 1px solid #e0e0e0; font-size: 0.85rem; vertical-align: middle; }
th { background: #f8f9fa; color: #333; font-weight: 600; white-space: nowrap; }
.sub-meta { font-size: 0.75rem; color: #666; display: block; margin-top: 2px; }
.actions-cell { white-space: nowrap; }

.alert { padding: 0.8rem; margin-bottom: 1rem; border-radius: 4px; }
.alert.success { background: #e8f5e9; color: #2e7d32; }
.alert.danger { background: #ffebee; color: #c62828; }
.error-text { color: #d32f2f; font-size: 0.85rem; margin-bottom: 1rem; text-align: center; }
.helper-text { font-size: 0.8rem; color: #666; margin-bottom: 1rem; }

/* Deletion Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-top: 4px solid #c62828;
}
.modal-box h3 {
  color: #0b1d3a;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.modal-box p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 1.2rem;
}
.btn-cancel {
  background: #e0e0e0;
  color: #333;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-cancel:hover { background: #d5d5d5; }
.btn-confirm-delete {
  background: #c62828;
  color: #fff;
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-confirm-delete:hover { background: #b71c1c; }