* { box-sizing: border-box; }
:root { font-family: Arial, Helvetica, sans-serif; color: #202938; background: #f3f6fb; }
body { margin: 0; }
.container { width: min(1100px, 92%); margin: 48px auto; }
header { margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: #2563eb; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); }
h2 { margin: 0 0 18px; font-size: 20px; }
.subtitle { margin: 7px 0 0; color: #718096; font-size: 14px; }
.panel { background: #fff; padding: 26px; margin: 20px 0; border: 1px solid #e5eaf2; border-radius: 14px; box-shadow: 0 8px 24px rgba(25, 45, 75, .05); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
input { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #d8dfeb; border-radius: 8px; font: inherit; outline: none; }
input:focus { border-color: #3976e8; box-shadow: 0 0 0 3px rgba(57,118,232,.12); }
.actions { display: flex; gap: 10px; margin-top: 18px; }
button { border: 0; border-radius: 8px; padding: 11px 17px; background: #2563eb; color: white; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: #e9eef7; color: #344054; }
button.small { padding: 7px 10px; font-size: 12px; }
button.delete-btn { background: #dc3545; }
#message { min-height: 18px; margin: 13px 0 0; font-size: 13px; }
#message:empty { display: none; }
.success { color: #16834a; }
.error { color: #c62828; }
.hidden { display: none; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.list-heading h2 { margin-bottom: 0; }
#searchInput { max-width: 260px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 12px; border-bottom: 1px solid #edf0f5; font-size: 14px; }
th { color: #64748b; background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.row-actions { white-space: nowrap; display: flex; gap: 7px; }
.empty { padding: 25px; text-align: center; color: #718096; }
footer { padding: 12px 0; text-align: center; color: #8792a5; font-size: 12px; }
@media (max-width: 700px) {
  .container { margin: 25px auto; }
  .panel { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .list-heading { align-items: stretch; flex-direction: column; }
  #searchInput { max-width: none; }
}
.top-header { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.user-menu { display:flex; align-items:center; gap:14px; text-align:right; }
.user-menu strong { display:block; font-size:14px; }
.role-pill { display:inline-block; margin-top:5px; padding:4px 9px; border-radius:20px; background:#e8eefc; color:#2455b4; font-size:11px; font-weight:700; text-transform:uppercase; }
.role-pill.admin { background:#e7f6ed; color:#187443; }
.role-pill.employee { background:#eaf0ff; color:#315db5; }
.logout-link { color:#dc3545; font-size:13px; font-weight:700; text-decoration:none; }
.user-form { margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid #edf0f5; }
.user-form select { width:100%; padding:12px 13px; border:1px solid #d8dfeb; border-radius:8px; background:#fff; font:inherit; }
.auth-page { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(420px, 100%); padding:34px; background:#fff; border:1px solid #e5eaf2; border-radius:16px; box-shadow:0 12px 35px rgba(25,45,75,.09); }
.login-card h1 { font-size:30px; margin:0; }
.login-card form { display:grid; gap:17px; margin-top:25px; }
.login-button { width:100%; margin-top:3px; }
.login-hint { margin:20px 0 0; padding:12px; border-radius:8px; background:#f4f7fc; color:#64748b; font-size:12px; }
.login-error { padding:10px; background:#fff0f0; border-radius:7px; }
@media (max-width:700px) { .top-header { align-items:flex-start; flex-direction:column; } .user-menu { width:100%; justify-content:space-between; text-align:left; } }
