/* Admin app shell — built on the same brand tokens as /assets/css/site.css */

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

.admin-sidebar {
  width: 230px;
  flex: none;
  background: var(--navy-deep);
  color: #cfc6ac;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 18px;
  border-bottom: 1px solid #262a44;
  margin-bottom: 10px;
  text-decoration: none;
}
.admin-sidebar .brand img { height: 44px; width: auto; }
.admin-sidebar .brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-bright);
}

.admin-sidebar a {
  color: #cfc6ac;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 13.5px;
  display: block;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover { background: #1c2038; }
.admin-sidebar a.current {
  background: #1c2038;
  border-left-color: var(--gold);
  color: #fff;
  font-weight: 600;
}

.badge-soon {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid #4a4432;
  color: #9a8f74;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.badge-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--teal);
  color: var(--navy-deep);
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
}

.admin-sidebar .group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6f6858;
  padding: 16px 18px 6px;
}

.admin-sidebar .signout { margin-top: auto; border-top: 1px solid #262a44; padding-top: 10px; }

.admin-main { flex: 1; min-width: 0; background: var(--cream); }

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-topbar h1 { font-size: 21px; }
.admin-topbar .who { font-size: 12.5px; color: var(--ink-dim); }

.admin-content { padding: 28px 30px 60px; max-width: 720px; }

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.admin-card h2 { font-size: 18px; margin-bottom: 6px; }
.admin-card .hint { color: var(--ink-dim); font-size: 13px; margin-bottom: 18px; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-dim); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  background: #fff;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* --- file upload inputs --- */
.form-field input[type="file"] {
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--cream-panel);
  color: var(--ink-dim);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.form-field input[type="file"]:hover { border-color: var(--gold); background: #fff; }
.form-field input[type="file"]:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-field input[type="file"]::file-selector-button,
.form-field input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(244, 197, 61, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.form-field input[type="file"]::file-selector-button:hover,
.form-field input[type="file"]::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 197, 61, 0.4);
}
.form-field input[type="file"]::file-selector-button:active,
.form-field input[type="file"]::-webkit-file-upload-button:active { transform: translateY(0); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.inline-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 14px; }
.inline-checkbox input { width: auto; }

/* --- price rows --- */
.price-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.price-row { display: flex; gap: 8px; align-items: center; }
.price-row .size-input { flex: 1; }
.price-row .price-input { width: 120px; flex: none; }
.price-row .remove-price-row {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--coral); cursor: pointer; font-size: 17px; line-height: 1;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.price-row .remove-price-row:hover {
  background: rgba(229,73,90,0.1);
  border-color: var(--coral);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(229,73,90,0.2);
}
.add-price-row-btn {
  align-self: flex-start;
  background: none; border: 1px dashed var(--line); border-radius: 6px;
  padding: 9px 16px; font-size: 12.5px; font-weight: 600;
  color: var(--forest); cursor: pointer; margin-top: 2px;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}
.add-price-row-btn:hover { border-color: var(--forest); background: rgba(22,63,52,0.06); transform: translateY(-1px); }

/* --- showtime rows (reuses price-row button styles) --- */
.showtime-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.showtime-row { display: flex; gap: 8px; align-items: center; }
.showtime-row .date-input { flex: 1; }
.showtime-row .time-input { flex: 1; }

/* --- tabs --- */
.menu-tabs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  background: var(--cream-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
}
.menu-tabs a {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-dim);
  background: transparent;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.menu-tabs a:hover { color: var(--forest); background: rgba(22,63,52,0.08); }
.menu-tabs a.active {
  background: linear-gradient(180deg, #1c4a3d, var(--forest));
  color: #fff;
  box-shadow: 0 3px 10px rgba(22,63,52,0.35);
}
.menu-tabs a.active:hover { background: linear-gradient(180deg, #1c4a3d, var(--forest)); }
.menu-tabs a .count { opacity: .7; font-weight: 400; margin-left: 3px; }

/* --- item table --- */
.menu-admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.menu-admin-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-dim); background: var(--cream-panel); padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.menu-admin-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.menu-admin-table tr:last-child td { border-bottom: none; }
.desc { color: var(--ink-dim); font-size: 12px; max-width: 320px; }
.menu-admin-table .prices { white-space: nowrap; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--forest); }
.menu-admin-table .prices .size { font-family: 'Jost', sans-serif; font-weight: 400; color: var(--ink-dim); font-size: 11px; }
.inactive-badge {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #a13a3a; background: #fdeceb; padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
.menu-admin-table .row-actions { display: flex; gap: 10px; white-space: nowrap; }
.menu-admin-table .row-actions form { display: inline; }
.link-btn {
  background: rgba(43,184,189,0.08); border: 1px solid transparent; border-radius: 6px;
  padding: 5px 10px; font-family: 'Jost', sans-serif;
  font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--teal); text-decoration: none;
  transition: background-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.link-btn:hover { background: rgba(43,184,189,0.18); box-shadow: 0 3px 8px rgba(43,184,189,0.22); transform: translateY(-1px); }
.link-btn.danger { color: var(--coral); background: rgba(229,73,90,0.08); }
.link-btn.danger:hover { background: rgba(229,73,90,0.16); box-shadow: 0 3px 8px rgba(229,73,90,0.22); }
.empty-row td { color: var(--ink-dim); font-style: italic; text-align: center; padding: 24px; }

.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--ink-dim);
  cursor: pointer;
}
.pw-toggle svg { width: 17px; height: 17px; }
.pw-toggle .icon-eye-off { display: none; }
.pw-toggle:hover { background: rgba(43,184,189,0.14); color: var(--teal); }
.pw-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.pw-toggle.is-visible { color: var(--coral); }
.pw-toggle.is-visible:hover { background: rgba(229,73,90,0.14); color: var(--coral); }
.pw-toggle.is-visible .icon-eye { display: none; }
.pw-toggle.is-visible .icon-eye-off { display: block; }

.flash {
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.flash.error { background: #fdeceb; color: #a13a3a; border: 1px solid #f0b8b8; }
.flash.success { background: #e8f3e6; color: #2c5f2d; border: 1px solid #b9dcb4; }

.staff-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image: url('../../../assets/img/marquee-night.jpeg');
  background-size: cover;
  background-position: center;
}
.staff-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,14,28,0.55) 0%, rgba(12,14,28,0.90) 100%);
}

.staff-login-card {
  position: relative;
  width: 380px;
  max-width: 100%;
  background: var(--cream-panel);
  border-radius: 8px;
  padding: 0 0 34px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}
.staff-login-card .neon-rule { margin-bottom: 28px; }
.staff-login-card .inner { padding: 0 34px; }

.staff-login-card .brand-mark { text-align: center; margin-bottom: 8px; }
.staff-login-card .brand-mark img { height: 92px; width: auto; margin: 0 auto; }

.staff-login-card .eyebrow { justify-content: center; display: flex; margin-bottom: 4px; }
.staff-login-card h1 { text-align: center; font-size: 25px; color: var(--forest); }

/* ================================================================
   Content admin — News, Visit, Gallery, About
   ================================================================ */

.menu-admin-table .thumb {
  width: 56px; height: 40px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); display: block;
}
.menu-admin-table .no-thumb {
  width: 56px; height: 40px; border-radius: 3px; border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--ink-dim); text-align: center;
}

.status-badge {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.status-badge.published { background: #e8f3e6; color: #2c5f2d; }
.status-badge.draft { background: #f0efe9; color: #6b6255; }
.status-badge.scheduled { background: #fdf3e0; color: #92650f; }
.status-badge.new { background: rgba(43, 184, 189, 0.16); color: #146b6e; }

.current-image-preview {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.current-image-preview img {
  width: 90px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line);
}
.current-image-preview .meta { font-size: 12px; color: var(--ink-dim); }

/* Gallery grid */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.gallery-admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.gallery-admin-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.gallery-admin-card .body { padding: 10px 12px; }
.gallery-admin-card .caption { font-size: 12.5px; margin-bottom: 8px; min-height: 18px; }
.gallery-admin-card .actions { display: flex; justify-content: space-between; align-items: center; }

/* About sections list */
.section-block {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.section-block:last-child { border-bottom: none; }
.section-block img { width: 110px; height: 78px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.section-block .no-thumb { width: 110px; height: 78px; flex: none; }
.section-block .no-thumb img { width: calc(44px * var(--icon-scale, 1)); height: calc(44px * var(--icon-scale, 1)); object-fit: contain; border: none; border-radius: 0; }
.section-block .no-thumb svg { width: 24px; height: 24px; }
.section-block .body { flex: 1; min-width: 0; }
.section-block .body h3 { font-size: 15.5px; }
.section-block .body p { font-size: 13px; color: var(--ink-dim); margin: 4px 0 8px; }

.faq-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.faq-row:last-child { border-bottom: none; }
.faq-row .q { font-weight: 600; font-size: 14px; }
.faq-row .a { font-size: 12.5px; color: var(--ink-dim); margin-top: 3px; }
.faq-row .actions { flex: none; display: flex; gap: 8px; }
.staff-login-card .subhead { text-align: center; color: var(--ink-dim); font-size: 13px; margin: 6px 0 24px; }

/* ================================================================
   Admin — mobile/tablet: collapsible sidebar drawer
   ================================================================ */

.admin-card:has(> table) { overflow-x: auto; }

.admin-sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--navy-deep);
  border: 1px solid #262a44;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.admin-sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.admin-sidebar-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-sidebar-toggle.is-open span:nth-child(2) { opacity: 0; }
.admin-sidebar-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(12, 14, 28, 0.5);
}

@media (max-width: 880px) {
  .admin-sidebar-toggle { display: flex; }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: 260px;
    max-width: 82vw;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  .admin-sidebar.is-open { transform: translateX(0); }

  .admin-sidebar-backdrop.is-open { display: block; }

  .admin-topbar {
    padding: 14px 16px 14px 62px;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .admin-topbar h1 { font-size: 18px; }

  .admin-content { padding: 18px 16px 40px; max-width: 100%; }
  .admin-card { padding: 16px; }

  .form-grid { grid-template-columns: 1fr; }

  .menu-admin-table { min-width: 520px; }

  .staff-login-card .inner { padding: 0 22px; }
}
