/* baut auf den Tokens aus /css/style.css auf */

.login-wrap { max-width: 380px; margin: 12vh auto 0; padding: 0 20px; }

.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
  animation: step-in 0.4s var(--ease-out);
}

.login-card h1 { font-size: 22px; margin-bottom: 4px; color: var(--ink); }
.login-card p {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 22px;
  font-family: 'Work Sans', sans-serif;
  font-style: normal;
}

.hidden { display: none !important; }

/* ---- shell ---- */

.admin-shell { max-width: 880px; margin: 0 auto; padding: 28px 20px 80px; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-title { display: flex; flex-direction: column; }
.admin-title .who { font-size: 12px; color: var(--ink-faint); font-family: 'Work Sans', sans-serif; margin-top: 2px; }

.tab-row {
  display: flex;
  gap: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 26px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  white-space: nowrap;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.tab-btn:hover:not(.active) { color: var(--ink); }
.tab-btn.active { background: var(--clay); color: #1a1512; }

.tab-panel { display: none; animation: step-in 0.3s var(--ease-out); }
.tab-panel.active { display: block; }

.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { font-size: 18px; color: var(--ink); }

.panel-note {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  margin: -6px 0 22px;
  max-width: 54ch;
  font-family: 'Work Sans', sans-serif;
}

/* ---- bookings list ---- */

.booking-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  animation: card-in 0.3s var(--ease-out) backwards;
  transition: all 0.16s var(--ease-out);
}
.booking-row:hover { border-color: rgba(231,228,221,0.16); }

.booking-when {
  min-width: 92px;
  text-align: center;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  background: var(--card-alt);
}
.booking-when .d { font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; font-weight: 600; }
.booking-when .t { font-weight: 700; font-size: 14.5px; color: var(--clay); }

.booking-info { flex: 1; min-width: 0; }
.booking-info .svc { font-weight: 600; font-size: 14px; color: var(--ink); }
.booking-info .cust { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.btn-danger {
  background: transparent;
  border: 1px solid rgba(185, 106, 90, 0.4);
  color: var(--red);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s var(--ease-out);
}
.btn-danger:hover { background: rgba(185, 106, 90, 0.12); }
.btn-danger:active { transform: scale(0.95); }

/* ---- working hours ---- */

.wh-row {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.wh-row .day-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.wh-row input[type="time"] {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  width: 96px;
  font-weight: 500;
}
.wh-times { display: flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 12.5px; }

.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0;
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}
.switch .track::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 2px;
  background: var(--ink-faint);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-pop), background 0.2s;
}
.switch input:checked + .track { border-color: var(--sage); }
.switch input:checked + .track::before { transform: translateX(18px); background: var(--sage); }

/* ---- services ---- */

.service-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-row .info { flex: 1; min-width: 0; }
.service-row .name { font-weight: 600; font-size: 14px; color: var(--ink); }
.service-row .meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.inline-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.inline-form input {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--ink);
  font-size: 13.5px;
}
.inline-form input::placeholder { color: var(--ink-faint); }
.inline-form input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }

/* ---- blocked slots ---- */

.blocked-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.blocked-row .info .date { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.blocked-row .info .meta { font-size: 12px; color: var(--ink-faint); }

.add-block-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 20px; align-items: end; }

/* ---- waitlist ---- */

.waitlist-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.waitlist-row .info { flex: 1; min-width: 0; }
.waitlist-row .date { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.waitlist-row .date .notified-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: middle;
}
.waitlist-row .meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; margin-top: 18px; }

/* ---- homepage content / gallery manager ---- */

.gallery-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.gallery-manage-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
}
.gallery-manage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-manage-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  opacity: 0;
  transition: opacity 0.18s var(--ease-out);
}
.gallery-manage-item:hover .gallery-manage-actions,
.gallery-manage-item:focus-within .gallery-manage-actions { opacity: 1; }
.gallery-manage-move {
  background: rgba(23, 25, 28, 0.85);
  border: 1px solid rgba(231, 228, 221, 0.25);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.gallery-manage-move:hover { border-color: var(--clay); }
.gallery-manage-delete {
  background: rgba(185, 106, 90, 0.85);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.gallery-manage-empty {
  color: var(--ink-faint);
  font-size: 13px;
  padding: 20px 0;
}
