* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #f5efe6;
  color: #2c211b;
  font-family: Georgia, "Times New Roman", serif;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =========================
   DASHBOARD
========================= */

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


/* =========================
   SIDEBAR
========================= */

.sidebar {
  width: 250px;
  min-height: 100vh;
  padding: 38px 25px;
  background: #241914;
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-logo {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 55px;
}

.admin-logo span {
  font-weight: normal;
}

.sidebar-label,
.admin-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: #bfa990;
  text-transform: uppercase;
}

.sidebar-label {
  margin-bottom: 18px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav a {
  padding: 14px 16px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-family: Arial, sans-serif;
  font-size: 13px;
  transition: 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.logout {
  margin-top: auto;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.55);
  font-family: Arial, sans-serif;
  font-size: 13px;
}


/* =========================
   MAIN
========================= */

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 55px 6%;
  overflow-x: hidden;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 45px;
}

.dashboard-header h1 {
  font-size: 52px;
  font-weight: normal;
  line-height: 1;
  margin-top: 12px;
}

.welcome-admin {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #6e5d4d;
}


/* =========================
   STAT CARDS
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 50px;
}

.stat-card {
  padding: 25px;
  background: #fbf8f2;
  border: 1px solid #d8cbbb;
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card span {
  font-size: 22px;
}

.stat-card p {
  margin-top: 20px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #76685b;
}

.stat-card h2 {
  margin-top: 8px;
  font-size: 36px;
  font-weight: normal;
}


/* =========================
   BOOKINGS
========================= */

.recent-bookings {
  background: #fbf8f2;
  border: 1px solid #d8cbbb;
  padding: 32px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title h2 {
  margin-top: 10px;
  font-size: 32px;
  font-weight: normal;
}

.section-title > a {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #6e5d4d;
}


/* =========================
   VIEW ALL BUTTON
========================= */

.view-all-button {
  border: none;
  background: transparent;
  color: #6e5d4d;
  font-family: Arial, sans-serif;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 0;
  transition: 0.3s;
}

.view-all-button:hover {
  color: #2c211b;
  text-decoration: underline;
}


/* =========================
   SEARCH + FILTER
========================= */

.booking-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.booking-search,
.booking-filter {
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8cbbb;
  background: #fffdf8;
  color: #2c211b;
  font-family: Arial, sans-serif;
  font-size: 12px;
  outline: none;
  border-radius: 2px;
}

.booking-search {
  width: 280px;
}

.booking-filter {
  width: 160px;
  cursor: pointer;
}

.booking-search::placeholder {
  color: #9a8c7d;
}

.booking-search:focus,
.booking-filter:focus {
  border-color: #806f60;
}


/* =========================
   BOOKING TABLE
========================= */

.booking-table {
  width: 100%;
  overflow-x: auto;
}

.table-head,
.booking-row {
  display: grid;
  grid-template-columns:
    1.2fr
    1.2fr
    1.2fr
    1.2fr
    0.7fr
    1.2fr
    1.5fr
    1.2fr;

  gap: 20px;
  align-items: center;

  min-width: 1200px;

  padding: 17px 10px;
}
.table-head {
  border-bottom: 1px solid #d8cbbb;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #806f60;
}

.booking-row {
  border-bottom: 1px solid #e7ded2;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.booking-row:last-child {
  border-bottom: none;
}


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

.status-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pending {
  color: #a47743;
  font-weight: normal;
}

.confirmed {
  color: #55745c;
  font-weight: normal;
}


/* =========================
   CONFIRM BUTTON
========================= */

.confirm-button {
  padding: 6px 12px;
  border: 1px solid #55745c;
  border-radius: 20px;
  background: transparent;
  color: #55745c;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 11px;
  transition: 0.3s;
}

.confirm-button:hover {
  background: #55745c;
  color: white;
}


/* =========================
   GALLERY MANAGEMENT
========================= */

.gallery-management {
  margin-top: 50px;
  padding: 32px;
  background: #fbf8f2;
  border: 1px solid #d8cbbb;
}

.gallery-management .section-title {
  margin-bottom: 30px;
}

#galleryCount {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #6e5d4d;
}


/* =========================
   GALLERY UPLOAD
========================= */

.gallery-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.upload-button {
  padding: 12px 22px;
  border: 1px solid #55745c;
  border-radius: 2px;
  background: #55745c;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.upload-button:hover {
  background: #3f5d46;
}

.upload-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#uploadStatus {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #55745c;
}


/* =========================
   ADMIN GALLERY
========================= */

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee5da;
  border: 1px solid #d8cbbb;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}


/* =========================
   DELETE BUTTON
========================= */

.delete-photo-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 9px 13px;
  border: none;
  border-radius: 2px;
  background: #a33c32;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.95;
  transition: 0.3s;
}

.delete-photo-button:hover {
  background: #78251f;
}

.delete-photo-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* =========================
   GALLERY LOADING
========================= */

.gallery-loading {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #806f60;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

}


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

@media (max-width: 700px) {

  .admin-dashboard {
    display: block;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    padding: 22px 18px;
  }

  .admin-logo {
    margin-bottom: 25px;
  }

  .sidebar-label {
    margin-bottom: 10px;
  }

  .admin-nav {
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
  }

  .admin-nav a {
    padding: 11px 12px;
    font-size: 12px;
  }

  .logout {
    margin-top: 15px;
  }

  .dashboard-main {
    padding: 30px 18px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .dashboard-header h1 {
    font-size: 42px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .recent-bookings {
    padding: 20px;
  }

  .gallery-management {
    padding: 20px;
  }

  .section-title {
    align-items: flex-start;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .booking-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-search,
  .booking-filter {
    width: 100%;
  }

  .booking-table {
    overflow-x: auto;
  }

  .admin-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .delete-photo-button {
    right: 7px;
    bottom: 7px;
    padding: 8px 10px;
    font-size: 10px;
  }

}
/* =========================
   SECURE ADMIN LOGIN
========================= */

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5efe6;
  padding: 30px;
  box-sizing: border-box;
}

.login-box {
  width: 100%;
  max-width: 430px;
  background: #241914;
  padding: 45px 40px;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.login-logo {
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 4px;
  margin-bottom: 30px;
}

.login-logo span {
  display: block;
  color: #d8c2a8;
  font-size: 20px;
  margin-top: 4px;
}

.login-label {
  color: #c9b29a;
  font-size: 11px;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.login-box h1 {
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: normal;
  margin: 0 0 10px;
}

.login-subtitle {
  color: #cfc5bd;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #5b4b42;
  border-radius: 3px;
  background: #30241f;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.login-field input::placeholder {
  color: #a99d95;
}

.login-field input:focus {
  border-color: #d8c2a8;
}

.login-button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 3px;
  background: #d8c2a8;
  color: #241914;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

.login-button:hover {
  opacity: 0.9;
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-error {
  color: #e8a9a9;
  font-size: 13px;
  margin: -5px 0 15px;
}


/* =========================
   HIDDEN ADMIN DASHBOARD
========================= */

#adminDashboard[hidden] {
  display: none !important;
}


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

@media (max-width: 500px) {

  .admin-login {
    padding: 20px;
  }

  .login-box {
    padding: 35px 25px;
  }

  .login-box h1 {
    font-size: 29px;
  }

}


/* Specialty page photo management */
.specialty-admin-intro { margin: -10px 0 24px; color: #76685b; font: 13px/1.7 Arial, sans-serif; }
.specialty-upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.specialty-upload-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: #fffdf8; border: 1px solid #d8cbbb; }
.specialty-upload-card h3 { font-size: 22px; font-weight: normal; }
.specialty-upload-card p { color: #76685b; font: 12px/1.6 Arial, sans-serif; }
.specialty-upload-status { color: #55745c; font: 12px Arial, sans-serif; }
@media (max-width: 900px) { .specialty-upload-grid { grid-template-columns: 1fr; } }


.specialty-admin-photos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.specialty-admin-photos > p {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #76685b;
}
.specialty-admin-photo {
  min-width: 0;
  border: 1px solid #e1d5c8;
  padding: 6px;
  background: #fff;
}
.specialty-admin-photo img {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: cover;
  margin-bottom: 6px;
}
.specialty-admin-photo .delete-photo-button {
  position: static;
  display: inline-block;
  width: auto;
  min-width: 64px;
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.2;
}




/* Keep specialty delete controls compact and directly under their photo */
.specialty-admin-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.specialty-admin-photo .delete-photo-button {
  align-self: flex-start;
}


/* Match Specialty Photos thumbnails to the main Gallery Photos sizing */
.specialty-admin-photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.specialty-admin-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  position: relative;
  display: block;
  background: #eee5da;
  border: 1px solid #d8cbbb;
}
.specialty-admin-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0;
}
.specialty-admin-photo .delete-photo-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  width: auto;
  padding: 8px 11px;
  font-size: 10px;
}
@media (max-width: 650px) {
  .specialty-admin-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}


/* Slightly reduce the three Specialty Photos category columns */
.specialty-upload-grid {
  max-width: 900px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.specialty-upload-card {
  padding: 16px;
  gap: 10px;
}
.specialty-upload-card h3 {
  font-size: 19px;
}
@media (max-width: 900px) {
  .specialty-upload-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
  }
}


/* Display one admin section at a time as separate pages */
.admin-page { display: none; }
.admin-page.active { display: block; }


/* Keep the login and dashboard fully separate when hidden */
.admin-login[hidden],
#adminDashboard[hidden] { display: none !important; }


/* Critical: HTML hidden attributes must always override layout styles */
[hidden] { display: none !important; }
#adminLogin[hidden], #adminDashboard[hidden] { display: none !important; }


/* =========================================================
   PROFESSIONAL ADMIN UI — warm luxury studio dashboard
   Presentation-only overrides; existing functionality preserved.
========================================================= */
:root {
  --admin-ink: #211914;
  --admin-brown: #3c2921;
  --admin-muted: #83766a;
  --admin-cream: #f7f5f1;
  --admin-surface: #ffffff;
  --admin-line: #e9e2d9;
  --admin-gold: #bd9662;
  --admin-green: #58735e;
  --admin-shadow: 0 12px 32px rgba(43, 29, 20, .055);
}
html { scroll-behavior: smooth; }
body {
  background: var(--admin-cream);
  color: var(--admin-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.admin-dashboard { min-height: 100vh; background: var(--admin-cream); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  width: 268px;
  padding: 30px 18px 22px;
  background: linear-gradient(180deg, #241812 0%, #302019 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 8px 0 30px rgba(31, 20, 13, .06);
}
.admin-logo {
  text-align: left;
  padding: 10px 14px 25px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: 3px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.admin-logo span { color: #d6b78d; }
.sidebar-label { padding: 0 14px; color: #b7a18c; font-size: 10px; letter-spacing: 2px; }
.admin-nav { gap: 7px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #d1c6bc;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.admin-nav a.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(189,150,98,.23), rgba(189,150,98,.08));
  border-color: rgba(214,183,141,.22);
  box-shadow: inset 3px 0 #d6b78d;
}
.logout {
  display: block;
  margin-top: auto;
  padding: 14px;
  border-radius: 10px;
  color: #d5b5a9;
  transition: background .2s ease, color .2s ease;
}
.logout:hover { color: #fff; background: rgba(191,91,72,.15); }
.dashboard-main {
  padding: 42px clamp(22px, 4vw, 58px);
  max-width: 1800px;
  margin: 0 auto;
}
.admin-page { display: none; width: 100%; }
.admin-page.active { display: block; animation: adminPageIn .24s ease both; }
@keyframes adminPageIn { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-header { align-items: center; margin-bottom: 32px; gap: 24px; }
.admin-label { color: #9a7854; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.dashboard-header h1 { margin-top: 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 3vw, 46px); letter-spacing: -1.2px; line-height: 1.12; }
.welcome-admin {
  padding: 11px 15px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: #fff;
  color: #65584c;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(43,29,20,.03);
}
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  position: relative;
  min-height: 155px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -25px;
  top: -30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(189,150,98,.08);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-3px); border-color: #d7c2a7; box-shadow: 0 16px 34px rgba(43,29,20,.09); }
.stat-card span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #f7f1e8; font-size: 19px; }
.stat-card p { margin-top: 19px; color: var(--admin-muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
.stat-card h2 { margin-top: 5px; color: var(--admin-ink); font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 600; letter-spacing: -.5px; }
.recent-bookings, .gallery-management {
  margin-top: 22px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--admin-line);
  border-radius: 17px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}
.section-title { align-items: center; margin-bottom: 24px; }
.section-title h2 { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.3vw, 31px); letter-spacing: -.5px; }
#galleryCount { padding: 8px 12px; border-radius: 999px; background: #f6f1e9; color: #6f5841; font-size: 12px; font-weight: 700; }
.booking-controls { gap: 10px; margin-bottom: 18px; }
.booking-search, .booking-filter {
  min-height: 44px;
  border: 1px solid #e5ddd3;
  border-radius: 10px;
  background: #fdfcfb;
  color: #30251e;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.booking-search { width: min(340px, 100%); }
.booking-search:focus, .booking-filter:focus, .login-field input:focus {
  border-color: #b99365;
  box-shadow: 0 0 0 3px rgba(189,150,98,.15);
  outline: none;
  background: #fff;
}
.table-head { border-bottom-color: var(--admin-line); color: #927d69; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.booking-row { border-bottom-color: #f0ebe5; color: #4d4036; }
.pending, .confirmed { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pending { background: #fff5e6; color: #99682a; }
.confirmed { background: #eaf5ec; color: #3f7049; }
.confirm-button { padding: 8px 13px; border-radius: 9px; background: #f0f6f0; font-weight: 700; }
.confirm-button:hover { background: var(--admin-green); }
.view-all-button { padding: 9px 13px; border: 1px solid var(--admin-line); border-radius: 9px; background: #fff; color: #6e5845; font-weight: 700; }
.view-all-button:hover { background: #f8f2e9; text-decoration: none; }
.upload-button {
  min-height: 43px;
  padding: 12px 18px;
  border: 1px solid #49674f;
  border-radius: 10px;
  background: var(--admin-green);
  box-shadow: 0 5px 12px rgba(88,115,94,.14);
  font-size: 12px;
  font-weight: 700;
}
.upload-button:hover { background: #3f5c46; transform: translateY(-1px); }
.admin-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-item { border: 1px solid var(--admin-line); border-radius: 13px; }
.gallery-item img { transition: transform .35s ease; }
.delete-photo-button { border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.16); font-weight: 700; }
.specialty-admin-intro { margin: -6px 0 22px; color: var(--admin-muted); font-size: 13px; line-height: 1.7; }
.specialty-upload-grid { gap: 16px; }
.specialty-upload-card {
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(43,29,20,.04);
}
.specialty-upload-card h3 { color: #39271d; font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.specialty-upload-card > p { color: var(--admin-muted); font-size: 12px; line-height: 1.6; }
.specialty-admin-photo { border-radius: 10px; overflow: hidden; }
.login-box {
  width: min(440px, calc(100% - 32px));
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(40,24,14,.16);
}
.admin-login {
  min-height: 100vh;
  padding: 24px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(189,150,98,.18), transparent 32%),
    radial-gradient(circle at 90% 80%, rgba(88,115,94,.12), transparent 28%),
    #f3eee7;
}
.login-logo { margin-bottom: 26px; color: #302019; font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: 4px; }
.login-logo span { color: #9d784e; }
.login-box h1 { margin: 12px 0 8px; color: #2c211b; font-family: Georgia, "Times New Roman", serif; font-size: 35px; letter-spacing: -.7px; }
.login-subtitle { color: #817366; font-size: 13px; line-height: 1.7; }
.login-field { margin-top: 21px; }
.login-field label { display: block; margin-bottom: 8px; color: #5c4b3e; font-size: 12px; font-weight: 700; }
.login-field input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #e5ddd3; border-radius: 10px; background: #fdfcfb; font: inherit; font-size: 13px; }
.login-button { width: 100%; min-height: 47px; margin-top: 24px; border: 0; border-radius: 10px; background: #302019; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.login-button:hover { background: #4b3326; transform: translateY(-1px); }
button, input, select { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(189,150,98,.55); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 1150px) {
  .sidebar { width: 230px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-dashboard { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; min-height: 0; padding: 14px; }
  .admin-logo { margin-bottom: 14px; padding: 6px 8px 15px; }
  .sidebar-label { margin: 0 8px 9px; }
  .admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .admin-nav a { min-height: 42px; padding: 10px; font-size: 12px; }
  .logout { margin-top: 12px; padding: 10px; }
  .dashboard-main { padding: 24px 14px 38px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .dashboard-header h1 { font-size: 36px; }
  .welcome-admin { font-size: 11px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 132px; padding: 15px; border-radius: 13px; }
  .stat-card span { width: 34px; height: 34px; font-size: 16px; }
  .stat-card p { margin-top: 13px; font-size: 11px; }
  .stat-card h2 { font-size: 29px; }
  .recent-bookings, .gallery-management { padding: 18px 14px; border-radius: 14px; }
  .section-title { align-items: flex-start; }
  .section-title h2 { font-size: 25px; }
  .booking-search { width: 100%; }
  .booking-filter { width: 100%; }
  .admin-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .specialty-upload-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* MAIN SITE COLOUR THEME — forest green, ivory and antique gold */
:root {
  --admin-ink: #203b30 !important;
  --admin-brown: #203b30 !important;
  --admin-muted: #6f756b !important;
  --admin-cream: #fbf9f3 !important;
  --admin-surface: #fffefa !important;
  --admin-line: rgba(32,59,48,.14) !important;
  --admin-gold: #a97d3f !important;
  --admin-green: #203b30 !important;
  --admin-gold-light: #ddc18a !important;
  --admin-shadow: 0 12px 32px rgba(32,59,48,.07) !important;
}
body, .admin-dashboard {
  background: #fbf9f3 !important;
  color: #203b30 !important;
}
.sidebar {
  background: linear-gradient(180deg,#172820 0%,#203b30 58%,#284739 100%) !important;
  border-right-color: rgba(221,193,138,.2) !important;
  box-shadow: 8px 0 30px rgba(23,40,32,.09) !important;
}
.admin-logo { color: #fbf9f3 !important; }
.admin-logo span { color: #ddc18a !important; }
.sidebar-label { color: #ddc18a !important; }
.admin-label { color: #a97d3f !important; }
.admin-nav a { color: rgba(251,249,243,.76) !important; }
.admin-nav a:hover {
  background: rgba(251,249,243,.08) !important;
  border-color: rgba(221,193,138,.12) !important;
  color: #fffefa !important;
}
.admin-nav a.active {
  color: #fffefa !important;
  background: linear-gradient(100deg,rgba(221,193,138,.2),rgba(221,193,138,.06)) !important;
  border-color: rgba(221,193,138,.28) !important;
  box-shadow: inset 3px 0 #ddc18a !important;
}
.logout { color: #ddc8a9 !important; }
.logout:hover { color: #fffefa !important; background: rgba(221,193,138,.12) !important; }
.dashboard-main { color: #203b30 !important; }
.dashboard-header h1, .section-title h2, .stat-card h2 { color: #203b30 !important; }
.welcome-admin {
  border-color: rgba(32,59,48,.14) !important;
  background: #fffefa !important;
  color: #4b6456 !important;
}
.stat-card {
  border-color: rgba(32,59,48,.14) !important;
  background: #fffefa !important;
  box-shadow: 0 12px 32px rgba(32,59,48,.065) !important;
}
.stat-card::after { background: rgba(169,125,63,.095) !important; }
.stat-card:hover { border-color: rgba(169,125,63,.48) !important; }
.stat-card span { background: #f1eee4 !important; }
.stat-card p { color: #6f756b !important; }
.recent-bookings, .gallery-management {
  border-color: rgba(32,59,48,.14) !important;
  background: #fffefa !important;
  box-shadow: 0 12px 32px rgba(32,59,48,.065) !important;
}
#galleryCount { background: #f1eee4 !important; color: #203b30 !important; }
.booking-search, .booking-filter {
  border-color: #d9ded4 !important;
  background: #fffefa !important;
  color: #203b30 !important;
}
.booking-search:focus, .booking-filter:focus {
  border-color: #a97d3f !important;
  box-shadow: 0 0 0 3px rgba(169,125,63,.16) !important;
}
.table-head { color: #8f6d3d !important; border-bottom-color: rgba(32,59,48,.14) !important; }
.booking-row { color: #3e5548 !important; border-bottom-color: rgba(32,59,48,.09) !important; }
.pending { background: #fff3db !important; color: #91621e !important; }
.confirmed { background: #e7f1e8 !important; color: #2d6741 !important; }
.confirm-button { background: #edf4ed !important; color: #203b30 !important; }
.confirm-button:hover { background: #203b30 !important; color: #fffefa !important; }
.view-all-button {
  border-color: rgba(32,59,48,.16) !important;
  background: #fffefa !important; color: #203b30 !important;
}
.view-all-button:hover { background: #f1eee4 !important; }
.upload-button {
  border-color: #203b30 !important;
  background: #203b30 !important;
  color: #fffefa !important;
  box-shadow: 0 5px 12px rgba(32,59,48,.16) !important;
}
.upload-button:hover { background: #315545 !important; border-color: #315545 !important; }
.gallery-item, .specialty-admin-photo {
  border-color: rgba(32,59,48,.14) !important;
  background: #f1eee4 !important;
}
.specialty-upload-card {
  border-color: rgba(32,59,48,.14) !important;
  background: #fffefa !important;
  box-shadow: 0 7px 22px rgba(32,59,48,.045) !important;
}
.specialty-upload-card h3 { color: #203b30 !important; }
.specialty-upload-card p, .specialty-admin-photos > p { color: #6f756b !important; }
.specialty-upload-status { color: #356b48 !important; }
.login-box {
  border-color: rgba(169,125,63,.24) !important;
  background: rgba(255,254,250,.98) !important;
  box-shadow: 0 24px 70px rgba(32,59,48,.15) !important;
}
.admin-login {
  background:
    radial-gradient(circle at 15% 15%,rgba(169,125,63,.16),transparent 32%),
    radial-gradient(circle at 90% 80%,rgba(32,59,48,.12),transparent 28%),
    #f1eee4 !important;
}
.login-logo { color: #203b30 !important; }
.login-logo span { color: #a97d3f !important; }
.login-label { color: #a97d3f !important; }
.login-box h1 { color: #203b30 !important; }
.login-subtitle { color: #6f756b !important; }
.login-field label { color: #4b6456 !important; }
.login-field input {
  border-color: #d9ded4 !important;
  background: #fffefa !important;
  color: #203b30 !important;
  -webkit-text-fill-color: #203b30 !important;
}
.login-field input::placeholder {
  color: #7d887e !important;
  -webkit-text-fill-color: #7d887e !important;
}
.login-field input:focus {
  border-color: #a97d3f !important;
  box-shadow: 0 0 0 3px rgba(169,125,63,.16) !important;
}
.login-button {
  background: #203b30 !important;
  color: #fbf9f3 !important;
}
.login-button:hover { background: #315545 !important; }
.login-error { color: #a33c32 !important; }
.delete-photo-button {
  background: #a33c32 !important;
  color: #fff !important;
}
.delete-photo-button:hover { background: #78251f !important; }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(169,125,63,.58) !important;
  outline-offset: 3px !important;
}
@media (max-width: 760px) {
  .sidebar {
    background: linear-gradient(180deg,#172820,#203b30) !important;
    border-bottom: 2px solid rgba(221,193,138,.35) !important;
  }
  .admin-nav a.active { box-shadow: inset 3px 0 #ddc18a !important; }
  .stats-grid .stat-card { box-shadow: 0 8px 22px rgba(32,59,48,.055) !important; }
}
