.staff-dashboard-page {
  min-height: calc(100vh - 60px);
  background: #f4f7fb;
  padding: 3rem 1rem;
}

.staff-dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-page {
  min-height: calc(100vh - 70px);
  background: #f4f7fb;
  padding: 3rem 1rem;
}

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-header {
  background: linear-gradient(135deg, #101828, #1f2937);
  color: white;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: #00d9ff;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0;
  letter-spacing: -0.04em;
}

.subtitle {
  color: #cbd5e1;
  margin-top: 0.7rem;
  max-width: 620px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00d9ff;
  color: #03121a;
  text-decoration: none;
  font-weight: 800;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 217, 255, 0.35);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card,
.panel {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.stat-card {
  padding: 1.4rem;
}

.stat-label {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  font-size: 2.3rem;
  margin-top: 0.35rem;
  color: #0f172a;
}

.stat-card p {
  color: #64748b;
  margin: 0.25rem 0 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 1.5rem;
}

.panel-scroll {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-header h2 {
  font-size: 1.25rem;
  color: #0f172a;
  margin: 0;
}

.shift-list {
  display: grid;
  gap: 0.85rem;
}

.shift-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.shift-item strong {
  color: #0f172a;
}

.shift-item p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.badge.pending {
  background: #fff7ed;
  color: #c2410c;
}

.badge.accepted {
  background: #ecfdf5;
  color: #047857;
}

.empty-state {
  padding: 1.5rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.empty-state p {
  margin: 0;
}

@media (max-width: 800px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-secondary,
.btn-small,
.btn-accept,
.btn-decline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  border-radius: 999px;
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 0.9rem 1.25rem;
}

.btn-small {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-accept {
  background: #dcfce7;
  color: #166534;
  padding: 0.55rem 0.85rem;
}

.btn-decline {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.55rem 0.85rem;
}

@media (max-width: 800px) {
  .header-actions {
    width: 100%;
  }

  .header-actions a {
    flex: 1;
  }

  .shift-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
.filter-form {
  display: grid;
  gap: 0.75rem;
}

.filter-form label {
  font-weight: 800;
  color: #0f172a;
}

.filter-row {
  display: flex;
  gap: 0.75rem;
}

.filter-row input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.status-text {
  color: #047857;
}

.dashboard-container-narrow {
  max-width: 760px;
}

.styled-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  color: #0f172a;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #00d9ff;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.16);
}

.help-text {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.error-text {
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.message {
  padding: 1rem;
  border-radius: 14px;
  font-weight: 700;
}

.message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.muted {
  color: #64748b;
  font-size: 0.9rem;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.btn-link {
  background: transparent;
  border: 1px solid #cbd5f5;
  color: #1e293b;
}

.badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

/* =========================
   DISCORANK
========================= */

.disco-rank-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.disco-rank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right,
      rgba(0, 217, 255, 0.25),
      transparent 45%);
  pointer-events: none;
}

.disco-rank-card strong {
  color: #00d9ff;
  font-size: 3rem;
  line-height: 1;
}

.disco-rank-card p {
  color: #cbd5e1;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* =========================
   APPLICANT CARDS
========================= */

.applicant-card {
  align-items: center;
}

.applicant-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.applicant-info p {
  margin: 0;
}

/* =========================
   RANK PILL
========================= */

.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f7ff, #f0f9ff);
  border: 1px solid #bae6fd;
}

.rank-pill span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #0369a1;
}

.rank-pill strong {
  font-size: 1rem;
  color: #0f172a;
}

.rank-pill em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
}

/* =========================
   DISCO INFO PANEL
========================= */

.disco-info-panel {
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.rank-breakdown {
  display: grid;
  gap: 1rem;
}

.rank-breakdown div {
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.rank-breakdown strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #0f172a;
}

.rank-breakdown span {
  color: #64748b;
  font-size: 0.92rem;
}

/* =========================
   BUTTONS
========================= */

.button-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #dbe4ee;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
}

.btn-accept,
.btn-decline {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accept {
  background: #10b981;
  color: white;
}

.btn-accept:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-decline {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-decline:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

/* =========================
   STATUS TEXT
========================= */

.status-text {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.9rem;
}

/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================
   3 COLUMN STATS
========================= */

.stats-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

  .header-actions {
    width: 100%;
  }

  .header-actions a {
    flex: 1;
  }

  .button-row {
    width: 100%;
  }

  .button-row button,
  .button-row a {
    flex: 1;
  }

  .rank-pill {
    flex-wrap: wrap;
  }

  .stats-grid.three {
    grid-template-columns: 1fr;
  }
}

.shift-meta {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.9rem;
}

.dashboard-grid {
  align-items: start;
}

.shift-item {
  max-width: 100%;
}

.applicant-card {
  flex-wrap: wrap;
}

.applicant-info {
  min-width: 0;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.onboarding-card {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: white;
  border-radius: 24px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  position: relative;
}

.onboarding-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 217, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.onboarding-header h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}

.completion-ring {
  min-width: 76px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d9ff, #38bdf8);
  color: #03121a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.checklist {
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 16px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  color: white;
  text-decoration: none;

  font-weight: 600;
  font-size: 0.98rem;

  backdrop-filter: blur(10px);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.check-item:visited {
  color: white;
  text-decoration: none;
}

.check-item:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  color: #7ee7ff;
}

.check-item:active {
  transform: translateX(2px) scale(0.99);
}

.check-item.done {
  background: rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.28);
  color: #7ee7ff;
}

.check-item.done:visited {
  color: #7ee7ff;
}

.check-item.done:hover {
  background: rgba(0, 217, 255, 0.18);
  border-color: rgba(0, 217, 255, 0.45);
}

.check-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);

  font-size: 0.95rem;
  font-weight: 800;
}

.check-item.done .check-icon {
  background: rgba(0, 217, 255, 0.2);
  color: #7ee7ff;
}

.check-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.check-title {
  font-weight: 700;
}

.check-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
}

.check-item:hover .check-subtitle {
  color: #cbd5e1;
}

.success-card {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0f172a;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.success-card p {
  margin: 0.25rem 0 0;
  color: #475569;
}

@media (max-width: 700px) {
  .onboarding-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .completion-ring {
    width: 64px;
    height: 64px;
    min-width: 64px;
    font-size: 0.95rem;
  }

  .check-item {
    padding: 0.95rem;
  }
}

.skills-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.skills-grid li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.skills-grid label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 700;
  color: #0f172a;
}

.skills-grid input {
  accent-color: #00d9ff;
}

/* =========================
   SKILLS
========================= */

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  background: #e0f7ff;
  color: #075985;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.no-skills {
  color: #64748b;
  font-size: 0.85rem;
}