/* =========================================================
   Kidsgrove Athletic FC - Staff area
   Uses the colours, fonts and buttons from style.css
   ========================================================= */

/* ---------- Login ---------- */
.staff-login {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem var(--gutter);
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(30, 68, 184, .28) 0%, rgba(30, 68, 184, 0) 70%),
    radial-gradient(ellipse at 50% 100%, var(--night) 0%, var(--ink) 70%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: clamp(2rem, 5vw, 3rem);
  background: rgba(10, 15, 36, .85);
  border: 1px solid var(--hair);
  text-align: center;
}

.login-crest { width: 96px; height: 96px; margin: 0 auto 1.6rem; }

.login-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.05;
  margin-bottom: .6rem;
}

.login-intro { color: rgba(242, 241, 236, .78); margin-bottom: 2rem; }

.login-card form { text-align: left; }
.login-card .btn { margin-top: .6rem; }
.login-card .btn:disabled { opacity: .6; cursor: wait; }

.login-help { margin: 1.6rem 0 0; font-size: .88rem; color: var(--stone); }

.login-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stone);
}
.login-back:hover { color: var(--gold-soft); }

/* ---------- Dashboard ---------- */
.staff-body { background: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.dash-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  background: rgba(5, 7, 15, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.dash-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.dash-brand span { font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.dash-user { display: flex; align-items: center; gap: 1.4rem; font-size: .9rem; }
.dash-email { color: var(--stone); }
.dash-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ivory);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.dash-link:hover { color: var(--gold-soft); }

.dash { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 5rem; }
.dash-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2rem; }

.dash-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  padding: 1rem 1.4rem;
  background: none;
  border: 0;
  box-shadow: inset 0 -2px 0 transparent;
  color: var(--stone);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.dash-tab:hover { color: var(--ivory); }
.dash-tab.is-active { color: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); }
.dash-tab:focus-visible { outline-offset: -4px; }

.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.dash-intro { max-width: 40rem; margin: 0; color: rgba(242, 241, 236, .78); }

.dash-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.dash-table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dash-table th {
  padding: .9rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.dash-table td { padding: .95rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover td { background: rgba(242, 241, 236, .03); }
.dash-empty { color: var(--stone); text-align: center; padding: 2.5rem 1rem !important; }

.col-actions { text-align: right; white-space: nowrap; width: 1%; }
.row-btn {
  margin-left: .5rem;
  padding: .45rem .9rem;
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.row-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.row-btn-danger:hover { border-color: var(--phoenix); color: #F08A98; }

.status {
  display: inline-block;
  padding: .3rem .65rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--stone);
}
.status-finished { border-color: var(--gold); color: var(--gold-soft); }
.status-live { border-color: var(--phoenix); background: var(--phoenix); color: var(--ivory); }
.status-postponed { border-style: dashed; }

/* Form extras */
.form-row select {
  width: 100%;
  padding: .8rem 0;
  background: transparent;
  color: var(--ivory);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}
.form-row select:focus { outline: none; border-bottom-color: var(--gold); }
.form-row select option { background: var(--night); color: var(--ivory); }
.form-split-wide { grid-template-columns: 1fr 3fr; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 1rem; }
.form-hint { margin: -.3rem 0 1.2rem; font-size: .85rem; color: var(--stone); }
.check-row { display: flex; align-items: center; gap: .7rem; margin: .4rem 0 1.4rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--gold); }

.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.btn-danger { background: var(--phoenix); border-color: var(--phoenix); color: var(--ivory); }
.btn-danger::before { background: #A30D25; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 300;
  padding: .9rem 1.4rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { background: var(--phoenix); color: var(--ivory); }

@media (max-width: 760px) {
  .dash-email { display: none; }
  .dash-user { gap: 1rem; }
  .form-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-split-wide { grid-template-columns: 1fr; }
  .modal-actions { grid-template-columns: 1fr; }
}

/* ---------- Shop forms ---------- */
.staff-body .modal { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }

.upload-row { margin-bottom: 1.2rem; }
.upload-label {
  display: block;
  margin-bottom: .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
}
.upload-current:not(:empty) {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .6rem;
  font-size: .85rem;
  color: var(--stone);
}
.upload-current img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); }
.upload-ok { color: var(--gold-soft); }

.upload-btn {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px dashed var(--hair);
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.upload-btn:hover, .upload-btn:focus-within { border-color: var(--gold); background: rgba(217, 195, 145, .06); }
.upload-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-btn span {
  font-size: .85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-btn::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.btn:disabled { opacity: .55; cursor: wait; }

/* ---------- Red hover accents ---------- */
.dash-link:hover, .login-back:hover { color: var(--kit-red); }
.dash-tab:hover { color: var(--kit-red); }
.row-btn:hover { border-color: var(--kit-red); color: var(--ivory); background: var(--kit-red); }
.upload-btn:hover, .upload-btn:focus-within { border-color: var(--kit-red); background: rgba(200, 48, 47, .08); }
.upload-btn:hover::before { background: var(--kit-red); color: var(--ivory); }
.dash-table tbody tr:hover td { background: rgba(200, 48, 47, .06); }