/* Base page styling */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9fafb;
  margin: 0;
  padding: 0;
  color: #111827;
}

/* Wrapper for cards/forms */
.wrap {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

/* Headings */
h1, h2, h3 {
  color: #111827;
  font-weight: 700;
  margin-top: 0;
}

/* Form labels and fields */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  padding: 0.6rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

/* ✅ Professional pill buttons */
.pill-button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #1e40af; /* brand blue */
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pill-button:disabled,
button:disabled,
input[type="submit"]:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

/* ✅ Role menu buttons */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.menu-button {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 0.9rem 1.2rem;
  background-color: #1e40af; /* brand blue */
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem; /* square-ish to match main site */
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
}

.menu-button:hover {
  background-color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Tables (like admin users) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: #f3f4f6;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #fafafa;
}

/* Status pills */
.status-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pill.active { background: #1e40af; color: #fff; }
.status-pill.suspended { background: #9ca3af; color: #fff; }

/* Banner messages */
.banner {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.banner.success { background: #d1fae5; border: 1px solid #34d399; color: #065f46; }
.banner.error { background: #fee2e2; border: 1px solid #fca5a5; color: #b91c1c; }
.banner.warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

/* Footer note */
.footer-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .wrap {
    margin: 1rem;
    padding: 1rem;
  }
  th, td {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* Top nav */
.nav-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .6rem .9rem;
  background: #1b3b99; /* deep PCHC blue */
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-bar .nav-link {
  display: inline-block;
  padding: .45rem .85rem;
  border-radius: 10px;
  background: #2a4fcc;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  transition: background .15s ease, transform .05s ease;
}
.nav-bar .nav-link:hover { background: #3b62ee; transform: translateY(-1px); }
.nav-bar .nav-link.active { background: #2647b7; outline: 2px solid rgba(255,255,255,.14); }
.nav-bar .nav-link.logout { background: #111; color: #fff; }
.nav-bar .nav-link.logout:hover { background: #000; }

