.admin-bg {
  background: radial-gradient(circle at 20% 5%, #2a1f14 0%, #11141a 42%, #090b0f 100%);
}

.admin-login-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-container {
  width: min(430px, 100%);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.admin-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(205, 160, 107, 0.18);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
}

.login-title {
  text-align: center;
  font-size: 1.8rem;
}

.login-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.admin-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-header h1 {
  font-size: 1.65rem;
}

.admin-header p {
  color: var(--muted);
}

.logout-btn {
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ffd0d0;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-container {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
}

.dashboard-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.1rem;
}

.stat-card {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.stat-card h3 {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.stat-number {
  color: var(--accent);
  font-size: 2rem;
  font-family: 'Oswald', sans-serif;
}

.dashboard-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.18);
}

.dashboard-tools p {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-tool-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tool-btn {
  border: 1px solid rgba(205, 160, 107, 0.45);
  background: rgba(205, 160, 107, 0.14);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.45rem 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.tool-btn-danger {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #ffb4b4;
}

.appointments-table {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.appointments-table h2 {
  padding: 1rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.25);
}

.appointments-table table {
  width: 100%;
  border-collapse: collapse;
}

#appointmentsContainer {
  overflow-x: auto;
}

.appointments-table th,
.appointments-table td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.15);
}

.appointments-table th {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.action-btn {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #ffb4b4;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.btn-edit {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.14);
  color: #b7d7ff;
}

.btn-confirm {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.14);
  color: #9af3bb;
}

.row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.appointment-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.appointment-status.is-pending {
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

.appointment-status.is-confirmed {
  border: 1px solid rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.12);
  color: #9af3bb;
}

.appointment-status.is-cancelled {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #ffb4b4;
}

.popular-price-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(205, 160, 107, 0.35);
  border-radius: 8px;
  background: rgba(205, 160, 107, 0.05);
  color: rgba(205, 160, 107, 0.42);
  cursor: pointer;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}

.popular-price-btn:hover,
.popular-price-btn.is-active {
  border-color: rgba(205, 160, 107, 0.85);
  background: rgba(205, 160, 107, 0.14);
  color: var(--accent);
}

.edit-panel {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.18);
  background: rgba(205, 160, 107, 0.04);
}

.edit-panel h3 {
  margin-bottom: 0.7rem;
}

.edit-form-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 5, 8, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.admin-modal {
  width: min(440px, 100%);
  border: 1px solid rgba(205, 160, 107, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, #11161d, #221a16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.admin-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(205, 160, 107, 0.14);
}

.admin-modal-icon.is-danger {
  color: #ffb4b4;
  background: rgba(239, 68, 68, 0.14);
}

.admin-modal-icon.is-info {
  color: #b7d7ff;
  background: rgba(96, 165, 250, 0.14);
}

.admin-modal-copy {
  display: grid;
  gap: 0.35rem;
}

.admin-modal-copy h3 {
  font-size: 1.25rem;
}

.admin-modal-copy p {
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-modal-actions .tool-btn {
  min-width: 120px;
}

@media (max-width: 480px) {
  .admin-modal-backdrop {
    align-items: end;
    padding: 0.75rem;
  }

  .admin-modal {
    border-radius: 12px;
    padding: 1rem;
  }

  .admin-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-modal-actions .tool-btn {
    width: 100%;
  }
}

.empty-state {
  padding: 1.8rem 1rem;
  text-align: center;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}


@media (max-width: 980px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .appointments-table table {
    min-width: 760px;
  }

  .dashboard-tools {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem;
  }

  .dashboard-tool-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dashboard-tool-actions .tool-btn {
    width: 100%;
  }
}

/* =========================================
   Admin – Openingsuren
========================================= */
.hours-section {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.1rem;
}

.hours-section h2 {
  padding: 1rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.25);
}

.hours-intro {
  padding: 0.75rem 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hours-grid {
  padding: 0.6rem 1rem 0.2rem;
  display: grid;
  gap: 0.2rem;
}

.hours-row-header {
  display: grid;
  grid-template-columns: 120px 100px 1fr 1fr;
  gap: 0.8rem;
  align-items: center;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.2);
  margin-bottom: 0.2rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 120px 100px 1fr 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(205, 160, 107, 0.1);
}

.hours-row-last {
  border-bottom: none;
}

.hours-day-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
}

.time-input {
  border: 1px solid rgba(205, 160, 107, 0.38);
  border-radius: 8px;
  background: #0f131a;
  color: var(--text);
  padding: 0.42rem 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.time-input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.time-input:focus {
  outline: 2px solid rgba(205, 160, 107, 0.5);
  outline-offset: 1px;
}

.hours-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(205, 160, 107, 0.18);
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .hours-row-header,
  .hours-row {
    grid-template-columns: 90px 80px 1fr 1fr;
    gap: 0.5rem;
  }

  .hours-day-name {
    font-size: 0.88rem;
  }

  .time-input {
    font-size: 0.82rem;
    padding: 0.38rem 0.35rem;
  }
}
/* =========================================
   Admin tabs
========================================= */
.admin-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  background: var(--panel);
  padding: 0.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.admin-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.admin-tab.is-active {
  background: rgba(205, 160, 107, 0.14);
  color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

@media (max-width: 640px) {
  .admin-tab {
    font-size: 0.8rem;
    padding: 0.48rem 0.7rem;
    gap: 0.3rem;
  }
  .admin-tab i {
    font-size: 0.85rem;
  }
}

/* =========================================
   Gallery admin
========================================= */
.gallery-upload-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 1.2rem;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: transparent;
  border: 2px dashed var(--accent);
  border-radius: 10px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 0.18s;
}

.upload-label:hover {
  background: rgba(205, 160, 107, 0.08);
}

#galleryUploadStatus {
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-upload-status.success {
  color: #9af3bb;
}

.gallery-upload-status.error {
  color: #ffb0b0;
}

.admin-empty-text {
  color: var(--muted);
  padding: 0.5rem 0;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.gallery-admin-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #0f131a;
  border: 1px solid rgba(205, 160, 107, 0.2);
}

.gallery-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.88);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  transition: background 0.15s;
}

.gallery-delete-btn:hover {
  background: var(--danger);
}

/* Padding for card content that doesn't have its own grid padding */
#settingsForm {
  padding: 0.75rem 1rem 0;
}

#pricesAdminContainer {
  padding: 0.5rem 1rem 0;
}

#addPriceForm {
  padding: 0 1rem;
}

.admin-form-title {
  margin: 1.2rem 0 0.6rem;
  color: var(--accent);
  font-size: 1rem;
}

.gallery-upload-area {
  padding-left: 1rem;
  padding-right: 1rem;
}

.gallery-admin-grid {
  padding: 0 1rem 1rem;
}

/* Prices admin table */
.price-admin-groups {
  display: grid;
  gap: 0.95rem;
}

.price-admin-group {
  overflow: hidden;
  border: 1px solid rgba(205, 160, 107, 0.18);
  border-radius: 10px;
  background: rgba(10, 12, 16, 0.24);
}

.price-admin-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.16);
  background: rgba(205, 160, 107, 0.06);
}

.price-admin-group-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.price-admin-group-header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
}

.price-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.price-admin-table th {
  padding: 0.65rem 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(205, 160, 107, 0.12);
}

#pricesAdminContainer td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(205, 160, 107, 0.1);
}

#pricesAdminContainer tr:last-child td {
  border-bottom: 0;
}

.price-admin-value {
  white-space: nowrap;
}

.price-inline-form {
  padding: 0.85rem;
  border-top: 1px solid rgba(205, 160, 107, 0.12);
}

.price-inline-form h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.88rem;
}

.price-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem auto;
  gap: 0.7rem;
  align-items: end;
}

.price-inline-fields label {
  display: grid;
  gap: 0.35rem;
}

.price-inline-fields span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-inline-fields input {
  width: 100%;
}

.price-inline-message {
  margin-top: 0.65rem;
}

@media (max-width: 640px) {
  .dashboard-container {
    width: min(100% - 1.25rem, 1120px);
    padding-top: 0.9rem;
  }

  .dashboard-stats {
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.85rem;
  }

  .admin-tabs {
    gap: 0.45rem;
    padding: 0.45rem;
  }

  .hours-section h2 {
    padding: 0.85rem;
    font-size: 1.25rem;
  }

  .hours-intro {
    padding: 0.75rem 0.85rem 0;
    font-size: 0.9rem;
  }

  #pricesAdminContainer,
  #addPriceForm {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .price-admin-groups {
    gap: 0.8rem;
  }

  .price-admin-group {
    border-radius: 9px;
  }

  .price-admin-group-header {
    padding: 0.7rem 0.75rem;
  }

  .price-admin-group-header h3 {
    font-size: 0.95rem;
  }

  .price-admin-group-header span {
    font-size: 0.75rem;
  }

  .price-admin-table,
  .price-admin-table thead,
  .price-admin-table tbody,
  .price-admin-table tr,
  .price-admin-table td {
    display: block;
    width: 100%;
  }

  .price-admin-table thead {
    display: none;
  }

  .price-admin-table tr {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(205, 160, 107, 0.16);
  }

  .price-admin-table tr:last-child {
    border-bottom: 0;
  }

  #pricesAdminContainer .price-admin-table td {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.22rem 0;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .price-admin-table td::before {
    content: attr(data-label);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .price-admin-table td[data-label="Naam"] {
    color: var(--text);
    font-weight: 700;
  }

  .price-admin-table td[data-label="Prijs"] {
    align-items: center;
  }

  .price-admin-table td[data-label="Acties"] {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-top: 0.65rem;
  }

  .price-admin-table td[data-label="Acties"]::before {
    display: none;
  }

  .price-admin-table .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .price-admin-table .action-btn {
    width: 100%;
    padding: 0.48rem 0.5rem;
    font-size: 0.88rem;
  }

  .price-inline-form {
    padding: 0.75rem;
  }

  .price-inline-fields {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .price-inline-fields .tool-btn {
    width: 100%;
  }

  .appointments-admin-table th,
  .appointments-admin-table td {
    white-space: nowrap;
  }

  .appointments-admin-table .phone-cell {
    min-width: 8.5rem;
  }

  .appointments-admin-table .row-actions {
    flex-wrap: nowrap;
  }

  .appointments-admin-table .action-btn {
    padding: 0.42rem 0.55rem;
    font-size: 0.86rem;
  }

  .gallery-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
