/* =========================================================
   Staff Dashboard — separate look from the public site.
   Reuses design tokens (colors/fonts) from main.css.
   ========================================================= */

.dash-body {
  min-height: 100vh;
  background: var(--cream);
}

/* ---------- Login screen ---------- */

.dash-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
  padding: 1.5rem;
}

.dash-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.4);
}

.dash-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* ---------- Shell layout ---------- */

.dash-shell {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
}

.dash-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
}

.dash-sidebar-brand img {
  height: 2.25rem;
  width: auto;
}

.dash-sidebar-brand span {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.dash-nav-link:hover,
.dash-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dash-nav-link-active {
  background: var(--green);
  color: #fff;
}
.dash-nav-link-active:hover {
  background: var(--green-dark);
}

.dash-nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.dash-nav-link-active .dash-nav-badge {
  background: rgba(255, 255, 255, 0.25);
}

.dash-sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-user {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem 3rem;
}

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

.dash-header h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--navy-deep);
}

.dash-header p {
  color: var(--slate);
  margin-top: 0.25rem;
}

/* ---------- Table ---------- */

.dash-table-wrap {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px -6px rgba(18, 49, 60, 0.1);
  overflow: hidden;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dash-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--slate);
  padding: 0.9rem 1.25rem;
  border-bottom: 1.5px solid rgba(18, 49, 60, 0.08);
  background: var(--green-pale);
}

.dash-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(18, 49, 60, 0.06);
  vertical-align: middle;
  color: var(--ink);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-table tr:hover td {
  background: var(--green-pale);
}

.dash-thumb {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  object-fit: cover;
  display: block;
  background: var(--green-light);
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.dash-badge-green {
  background: var(--green-light);
  color: var(--green-dark);
}
.dash-badge-gray {
  background: rgba(18, 49, 60, 0.08);
  color: var(--slate);
}
.dash-badge-amber {
  background: #FFF4E0;
  color: #92620A;
}

.dash-action-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  margin-right: 0.9rem;
}
.dash-action-link:hover,
.dash-action-link:focus-visible {
  color: var(--green-dark);
}
.dash-action-link-danger {
  color: #B3261E;
}
.dash-action-link-danger:hover {
  color: #7c1912;
}

.dash-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--slate);
}

/* ---------- Forms/cards inside dashboard ---------- */

.dash-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px -6px rgba(18, 49, 60, 0.1);
  padding: 2rem;
  max-width: 640px;
}

.dash-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.dash-checkbox-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
}

@media (max-width: 860px) {
  .dash-shell {
    flex-direction: column;
  }
  .dash-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.25rem;
    overflow-x: auto;
  }
  .dash-sidebar-brand {
    margin-bottom: 0;
    margin-right: 0.5rem;
  }
  .dash-sidebar-footer {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: none;
  }
  .dash-user {
    display: none;
  }
  .dash-main {
    padding: 1.5rem 1.25rem 2.5rem;
  }
  .dash-table-wrap {
    overflow-x: auto;
  }
}
