:root {
  --admin-primary: #006fb0;
  --admin-primary-dark: #055b8c;
  --admin-primary-soft: #eef7fc;
  --admin-primary-soft-2: #dceef8;
  --admin-success: #1f9d68;
  --admin-info: #2684c7;
  --admin-warning: #d9921b;
  --admin-danger: #d9534f;
  --admin-surface: #ffffff;
  --admin-surface-alt: #f5f9fc;
  --admin-border: #dbe8f0;
  --admin-text: #12263a;
  --admin-text-soft: #5c7285;
  --admin-shadow: 0 18px 42px rgba(18, 38, 58, 0.08);
  --admin-radius: 22px;
  --admin-sidebar-width: 278px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--admin-text);
  background: linear-gradient(180deg, #f7fbfe 0%, #eef5fa 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--admin-sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  background: linear-gradient(180deg, #0a2740 0%, #081f33 100%);
  color: #fff;
  overflow-y: auto;
  z-index: 40;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px;
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand strong {
  font-size: 16px;
}

.admin-brand span,
.admin-nav__label,
.admin-sidebar-card__eyebrow,
.admin-kicker,
.admin-page-hero__kicker,
.section-kicker,
.table-eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

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

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  transition: 0.2s ease;
}

.admin-nav__item:hover,
.admin-nav__item.is-active {
  background: rgba(0, 111, 176, 0.24);
  color: #fff;
}

.admin-sidebar-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-nav__item--logout {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-nav__item--logout:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-sidebar-card {
  margin-top: 28px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 111, 176, 0.35) 0%, rgba(0, 111, 176, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-card h4 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.admin-sidebar-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.7;
}

.admin-main {
  flex: 1;
  margin-left: var(--admin-sidebar-width);
  padding: 24px;
}

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

.admin-topbar__left,
.admin-topbar__right,
.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-topbar h1,
.admin-page-hero h2,
.admin-card__header h3,
.login-panel h1 {
  margin: 0;
}

.admin-kicker,
.admin-page-hero__kicker,
.section-kicker,
.table-eyebrow {
  color: var(--admin-primary);
}

.admin-menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface);
  color: var(--admin-primary);
  cursor: pointer;
  box-shadow: var(--admin-shadow);
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.admin-user-menu {
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  color: var(--admin-text);
  cursor: pointer;
  transition: 0.2s ease;
}

.admin-user-menu:hover,
.admin-user-menu:focus-visible {
  border-color: #c7dde9;
  box-shadow: 0 18px 36px rgba(18, 38, 58, 0.12);
  outline: none;
}

.admin-user-menu__identity {
  display: grid;
  text-align: left;
}

.admin-user-menu__caret {
  color: var(--admin-text-soft);
  transition: transform 0.2s ease;
}

body.admin-profile-open .admin-user-menu__caret {
  transform: rotate(180deg);
}

.admin-user-pill__avatar,
.user-avatar,
.login-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--admin-primary) 0%, #31a4d7 100%);
  color: #fff;
  font-weight: 700;
}

.admin-user-pill small,
.admin-user-menu small,
.meta-text,
.table-subtext,
.empty-state p,
.card-note {
  color: var(--admin-text-soft);
}

.admin-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 31, 51, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 45;
}

.admin-drawer-overlay.is-visible,
body.admin-profile-open .admin-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.admin-profile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  border-left: 1px solid var(--admin-border);
  box-shadow: -22px 0 48px rgba(18, 38, 58, 0.14);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 50;
}

.admin-profile-drawer.is-open,
body.admin-profile-open .admin-profile-drawer {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.admin-profile-drawer__header,
.admin-profile-drawer__body {
  padding: 24px;
}

.admin-profile-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6eef4;
}

.admin-profile-drawer__header h3 {
  margin: 6px 0;
}

.admin-profile-drawer__subtext {
  margin: 0;
  color: var(--admin-text-soft);
}

.admin-profile-drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface);
  color: var(--admin-primary);
  cursor: pointer;
}

.admin-profile-drawer__body {
  display: grid;
  gap: 20px;
  overflow-y: auto;
}

.admin-profile-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.admin-profile-alert--success {
  background: #ecf9f3;
  border: 1px solid #cfeedd;
  color: #18764e;
}

.admin-profile-alert--error {
  background: #fff1f0;
  border: 1px solid #f6d1cf;
  color: #b54641;
}

.admin-profile-section + .admin-profile-section {
  padding-top: 22px;
  border-top: 1px solid #e6eef4;
}

.admin-card__header--compact {
  margin-bottom: 14px;
}

.admin-profile-form {
  margin-top: 0;
}

.admin-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 31, 51, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 55;
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 60;
}

/* Toast notifications (bottom-right) */
#admin-toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
}

.admin-toast {
  pointer-events: auto;
  width: 420px;
  max-width: calc(100vw - 48px);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  border-left: 6px solid var(--admin-primary);
  color: var(--admin-text);
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(4, 25, 45, 0.18);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transform: translateY(18px);
  opacity: 0;
  animation: admin-toast-in 360ms ease forwards;
}

.admin-toast--success { border-left-color: var(--admin-success); }
.admin-toast--error { border-left-color: var(--admin-danger); }

.admin-toast__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(0,0,0,0.04);
}

.admin-toast__body { flex: 1 1 auto; }
.admin-toast__title { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.admin-toast__message { font-size: 14px; color: var(--admin-text-soft); line-height: 1.35; }

.admin-toast__close {
  background: transparent;
  border: none;
  color: var(--admin-text-soft);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
}

@keyframes admin-toast-in {
  from { transform: translateY(18px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}


.admin-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal__panel {
  width: min(100%, 980px);
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  border: 1px solid #dce8f0;
  box-shadow: 0 26px 70px rgba(8, 31, 51, 0.22);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s ease;
  overflow: hidden;
}

.admin-modal.is-open .admin-modal__panel {
  transform: translateY(0) scale(1);
}

.admin-modal__header,
.admin-modal__body {
  padding: 24px;
}

.admin-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6eef4;
}

.admin-modal__header h3 {
  margin: 6px 0;
}

.admin-modal__header p:last-child {
  margin-bottom: 0;
}

.admin-modal__body {
  overflow-y: auto;
}

.admin-modal__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface);
  color: var(--admin-primary);
  cursor: pointer;
}

body.admin-profile-open {
  overflow: hidden;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8fd 100%);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
}

.admin-page-hero p {
  margin: 6px 0 0;
  max-width: 680px;
  color: var(--admin-text-soft);
  line-height: 1.75;
}

.admin-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.admin-btn--primary {
  background: var(--admin-primary);
  color: #fff;
  box-shadow: 0 16px 26px rgba(0, 111, 176, 0.18);
}

.admin-btn--primary:hover {
  background: var(--admin-primary-dark);
  color: #fff;
}

.admin-btn--secondary,
.admin-btn--ghost {
  background: var(--admin-surface);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.admin-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-grid {
  display: grid;
  gap: 24px;
}

.admin-grid--stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.admin-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid--analytics {
  grid-template-columns: 1.65fr 1fr;
}

.admin-card {
  padding: 24px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
}

.admin-card--flush {
  padding: 0;
}

.admin-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.admin-card__header p,
.admin-card__header small,
.admin-list li small,
.timeline-note,
.legend li span {
  color: var(--admin-text-soft);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-card__icon.primary,
.progress-bar span.primary,
.legend-dot.primary {
  background: rgba(0, 111, 176, 0.12);
  color: var(--admin-primary);
}

.stat-card__icon.success,
.legend-dot.success {
  background: rgba(31, 157, 104, 0.12);
  color: var(--admin-success);
}

.stat-card__icon.info,
.legend-dot.info {
  background: rgba(38, 132, 199, 0.12);
  color: var(--admin-info);
}

.stat-card__icon.warning,
.legend-dot.warning {
  background: rgba(217, 146, 27, 0.12);
  color: var(--admin-warning);
}

.stat-card__value {
  margin: 4px 0;
  font-size: 32px;
  font-weight: 800;
}

.stat-card__label,
.metric-label,
.mini-meta,
.timeline-date {
  color: var(--admin-text-soft);
  font-size: 13px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-action {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--admin-border);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.quick-action i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.quick-action strong,
.quick-action span,
.status-list li,
.legend li,
.mini-list li,
.info-pair {
  display: block;
}

.quick-action span,
.status-list li small,
.mini-list li small {
  margin-top: 6px;
  color: var(--admin-text-soft);
  font-size: 13px;
}

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

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

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #edf3f7;
  vertical-align: top;
}

.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--admin-text-soft);
}

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

.table-title {
  display: block;
  font-weight: 700;
}

.table-subtext {
  display: block;
  margin-top: 4px;
}

.table-empty-cell {
  padding: 22px 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.badge--primary { background: rgba(0, 111, 176, 0.12); color: var(--admin-primary); }
.badge--success { background: rgba(31, 157, 104, 0.12); color: var(--admin-success); }
.badge--warning { background: rgba(217, 146, 27, 0.14); color: var(--admin-warning); }
.badge--danger { background: rgba(217, 83, 79, 0.12); color: var(--admin-danger); }
.badge--info { background: rgba(38, 132, 199, 0.12); color: var(--admin-info); }
.badge--muted { background: #eef3f7; color: var(--admin-text-soft); }

.action-links {
  display: inline-flex;
  gap: 10px;
  color: var(--admin-primary);
}

.status-list,
.mini-list,
.legend,
.timeline,
.info-list,
.image-meta,
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li,
.mini-list li,
.info-list li,
.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf3f7;
}

.status-list li:last-child,
.mini-list li:last-child,
.info-list li:last-child,
.detail-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-list strong,
.info-pair strong,
.timeline strong {
  font-size: 14px;
}

.chart-shell,
.bar-chart,
.donut-wrap {
  display: flex;
  gap: 18px;
}

.chart-shell {
  flex-direction: column;
}

.line-chart {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  border: 1px solid #edf3f7;
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.line-chart polyline.area {
  fill: rgba(0, 111, 176, 0.12);
}

.line-chart polyline.stroke {
  fill: none;
  stroke: var(--admin-primary);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.line-chart .grid-line {
  stroke: #e6eff5;
  stroke-width: 1;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.chart-labels span {
  text-align: center;
  font-size: 12px;
  color: var(--admin-text-soft);
}

.bar-chart {
  align-items: flex-end;
  min-height: 240px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bar {
  width: 100%;
  max-width: 52px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #38a8d8 0%, var(--admin-primary) 100%);
  min-height: 30px;
}

.bar-value {
  font-weight: 700;
}

.bar-label {
  color: var(--admin-text-soft);
  font-size: 12px;
}

.donut-wrap {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.donut-chart {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf3f7;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.donut-center strong {
  font-size: 30px;
}

.legend {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.progress-list {
  display: grid;
  gap: 14px;
}

.progress-item {
  display: grid;
  gap: 8px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8f1f6;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38a8d8 0%, var(--admin-primary) 100%);
}

.room-card-grid,
.image-card-grid,
.user-card-grid,
.login-feature-grid {
  display: grid;
  gap: 18px;
}

.room-card-grid,
.image-card-grid,
.user-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-card,
.image-card,
.user-card,
.login-panel,
.login-showcase {
  border: 1px solid var(--admin-border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.room-card__media,
.image-card__media,
.login-showcase__image {
  height: 190px;
  background: var(--admin-primary-soft);
}

.room-card__media img,
.image-card__media img,
.login-showcase__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card__body,
.image-card__body,
.user-card__body {
  padding: 20px;
}

.room-meta,
.image-meta,
.user-meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.meta-row,
.user-meta li,
.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.thumb-strip img {
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.toolbar,
.filters,
.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
}

.search-box input {
  width: 100%;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
}

.search-box--wide {
  flex: 1 1 420px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: #fff;
  color: var(--admin-text-soft);
  font-weight: 600;
}

.filter-chip.is-active {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
  border-color: #cde5f3;
}

.booking-table-card {
  overflow: hidden;
}

.booking-table-shell {
  padding: 24px;
}

.booking-filters {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.booking-toolbar__row,
.toolbar-actions,
.booking-quick-filters,
.table-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-toolbar__row,
.table-summary {
  justify-content: space-between;
  align-items: center;
}

.toolbar-actions {
  justify-content: flex-end;
}

.booking-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-field {
  margin-bottom: 0;
}

.table-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f2f7fb;
  color: var(--admin-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.table-chip--primary {
  background: rgba(0, 111, 176, 0.12);
  color: var(--admin-primary);
}

.table-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.table-pagination {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.table-pagination__button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: #f7fbfd;
  color: var(--admin-primary);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.table-pagination__button:hover {
  background: var(--admin-primary-soft);
  border-color: #cde5f3;
}

.table-pagination__button.is-disabled {
  color: #9aacb8;
  border-color: #e6eef3;
  background: #f7fbfd;
  pointer-events: none;
}

.table-pagination__label {
  color: var(--admin-text-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

.admin-table--bookings td:nth-child(2),
.admin-table--bookings td:nth-child(3),
.admin-table--bookings td:nth-child(4) {
  white-space: normal;
}

.table-actions-cell {
  width: 72px;
}

.table-actions {
  position: relative;
}

.table-actions summary {
  list-style: none;
}

.table-actions summary::-webkit-details-marker {
  display: none;
}

.table-actions__toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: #fff;
  color: var(--admin-primary);
  cursor: pointer;
}

.table-actions[open] .table-actions__toggle {
  background: var(--admin-primary-soft);
  border-color: #cde5f3;
}

/* menu that appears when table action toggle is clicked
   originally positioned absolute inside the table cell which could
   cause horizontal scrollbars when the table is scrolled.  Use fixed
   positioning and compute coordinates via JavaScript so the popup
   floats above the table and never affects its layout. */
.table-actions__menu {
  position: fixed;
  top: auto;
  left: auto;
  width: 190px;
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dce8f0;
  box-shadow: 0 18px 40px rgba(8, 31, 51, 0.14);
  z-index: 5;
}

.table-actions__menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--admin-text);
  text-decoration: none;
}

.table-actions__menu a:hover {
  background: #f4f9fc;
  color: var(--admin-primary);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline li {
  position: relative;
  padding-left: 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--admin-primary);
  box-shadow: 0 0 0 6px rgba(0, 111, 176, 0.12);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -22px;
  width: 2px;
  background: #dce9f1;
}

.timeline li:last-child::after {
  display: none;
}

.empty-state {
  padding: 22px;
  border-radius: 18px;
  background: var(--admin-surface-alt);
  border: 1px dashed #cfe1ec;
  text-align: center;
}

.login-page {
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f4f9fc 0%, #e8f1f7 100%);
}

.login-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  border-radius: 0;
  overflow: hidden;
  background: var(--admin-surface);
  border: 0;
  box-shadow: none;
}

.login-hero {
  position: relative;
  min-height: 720px;
  background-image: url("../../image/14.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 31, 51, 0.14) 0%, rgba(8, 31, 51, 0.72) 100%);
}

.login-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: clamp(28px, 4vw, 48px);
  width: auto;
  height: 57%;
  /* background: linear-gradient(135deg, rgba(0, 111, 176, 0.97) 0%, rgba(5, 91, 140, 0.94) 100%); */
  border-radius: 0 0 42% 58% / 0 0 32% 28%;
}

.login-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(42px, 5vw, 72px) 30px 34px;
}

.login-hero__top {
  display: grid;
  gap: 28px;
  max-width: 500px;
}

.login-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.login-hero__brand img {
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.16);
}

.login-hero__brand strong,
.login-hero__brand span {
  display: block;
}

.login-hero__brand strong {
  font-size: 17px;
}

.login-hero__brand span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.login-hero__copy .section-kicker {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.login-hero__copy h1 {
  margin: 0 0 16px;
  max-width: 420px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -1.4px;
}

.login-hero__copy p:last-child {
  margin: 0;
  max-width: 360px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

.login-hero__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.login-highlight {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(9, 25, 40, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(7px);
}

.login-highlight strong,
.login-panel__head h2 {
  display: block;
}

.login-highlight strong {
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.login-highlight span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 38px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.login-panel__inner {
  width: min(410px, 100%);
}

.login-panel .section-kicker {
  color: var(--admin-text-soft);
}

.login-panel__head h2 {
  margin: 10px 0 14px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1.2px;
}

.login-panel__head p:last-child {
  margin: 0;
  line-height: 1.7;
  color: var(--admin-text-soft);
}

.login-panel__head p,
.login-panel__note,
.field-help {
  color: var(--admin-text-soft);
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--admin-text-soft);
}

.login-input {
  position: relative;
}

.login-input__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #97abb9;
  font-size: 15px;
  pointer-events: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7e4eb;
  background: #fff;
  outline: none;
  transition: 0.2s ease;
}

.login-input input {
  padding-left: 46px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 4px rgba(0, 111, 176, 0.12);
}

.login-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  font-size: 13px;
  color: var(--admin-text-soft);
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.login-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--admin-primary);
}

.login-help-link {
  color: var(--admin-primary);
  font-weight: 700;
}

.login-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  box-shadow: none;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-banner {
  padding: 18px;
  border-radius: 18px;
  background: var(--admin-primary-soft);
  border: 1px solid #d4e8f3;
}

.info-banner p {
  margin: 0;
  line-height: 1.6;
}

.login-panel__footer {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.login-panel__note {
  margin: 0;
  line-height: 1.7;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-soft);
  font-weight: 700;
}

.login-help-link:hover,
.login-back-link:hover {
  color: var(--admin-primary-dark);
}

.info-banner strong,
.section-title {
  display: block;
  margin-bottom: 8px;
}

.admin-sidebar-overlay {
  display: none;
}

@media (max-width: 1199px) {
  .admin-grid--stats,
  .quick-actions,
  .room-card-grid,
  .image-card-grid,
  .user-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .admin-menu-toggle,
  .admin-sidebar-overlay {
    display: inline-flex;
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 31, 51, 0.45);
    border: none;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: 0.2s ease;
  }

  .admin-main {
    margin-left: 0;
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.admin-sidebar-open .admin-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar,
  .admin-topbar__right,
  .admin-page-hero,
  .admin-grid--analytics,
  .admin-grid--2,
  .admin-grid--3,
  .admin-grid--4,
  .login-shell {
    grid-template-columns: 1fr;
  }

  /* enforce wrapping for flex-based containers so they don't overflow
     the viewport at narrow widths; the earlier rule above attempted to
     treat these as grid elements but only .admin-grid-* classes are
     actually grids. adding flex-wrap here covers the remaining cases. */
  .admin-topbar,
  .admin-page-hero {
    flex-wrap: wrap;
  }

  /* Make sure page hero text can shrink/stack and action buttons keep
     some breathing room. */
  .admin-page-hero > div,
  .admin-page-hero__actions {
    flex: 1 1 100%;
  }

  .admin-page-hero p {
    max-width: 100%;
  }

  /* Hide verbose text on topbar at narrow widths; keep only menu icon and profile */
  .admin-kicker,
  .admin-user-menu__identity,
  .admin-user-menu__caret {
    display: none;
  }

  .admin-topbar__left {
    gap: 8px;
  }

  .admin-topbar__left h1 {
    font-size: 18px;
  }

  .admin-user-menu {
    padding: 8px 12px;
    min-width: auto;
  }

  .admin-user-pill__avatar {
    width: 40px;
    height: 40px;
  }

  .admin-grid--stats,
  .quick-actions,
  .room-card-grid,
  .image-card-grid,
  .user-card-grid,
  .login-hero__highlights,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 520px;
  }

  .login-hero::after {
    right: 0;
    width: 100%;
    height: 50%;
  }
}

@media (max-width: 767px) {
  .admin-main,
  .login-page {
    padding: 0;
  }

  .admin-content {
    padding: 4px;
    gap: 8px;
  }

  /* Ensure topbar fits on very small screens without overflow */
  .admin-topbar {
    gap: 8px;
    padding: 12px;
    margin-bottom: 0;
  }

  .admin-topbar__left {
    min-width: 0;
    flex: 1;
  }

  .admin-topbar__left h1 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-topbar__right {
    flex-shrink: 0;
  }

  .login-page,
  .login-shell,
  .login-panel {
    min-height: 100vh;
  }

  .login-shell {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .login-hero {
    display: none;
  }

  .admin-page-hero,
  .admin-card,
  .login-panel {
    padding: 20px;
  }

  /* Hide the kicker text on page hero (e.g., "OPERATIONS OVERVIEW") on mobile */
  .admin-page-hero__kicker {
    display: none;
  }

  .login-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    align-items: center;
  }

  .login-hero__copy h1,
  .login-panel__head h2 {
    font-size: 34px;
  }

  .login-form__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-topbar__left,
  .admin-topbar__right,
  .toolbar,
  .filters,
  .booking-toolbar__row,
  .table-summary,
  .donut-wrap {
    align-items: stretch;
  }

  .booking-filter-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .table-pagination {
    width: 100%;
    justify-content: flex-end;
  }

  .toolbar-actions .admin-btn {
    flex: 1 1 180px;
    justify-content: center;
  }

  .admin-user-menu,
  .admin-profile-actions {
    width: 100%;
  }

  .admin-modal {
    padding: 16px;
    align-items: stretch;
  }

  .admin-modal__panel {
    width: 100%;
    max-height: 100%;
    border-radius: 22px;
  }

  .admin-profile-actions {
    flex-direction: column-reverse;
  }

  .admin-profile-drawer {
    width: 100%;
  }

  .search-box {
    min-width: 0;
    flex: 1 1 auto;
    height: 42px;
    padding: 0 10px;
  }

  .search-box input {
    height: 42px;
    font-size: 14px;
  }
}

/* Additional mobile optimizations for small screens (phones) */
@media (max-width: 575px) {
  .admin-topbar {
    padding: 10px;
    gap: 4px;
  }

  .admin-topbar__left h1 {
    font-size: 14px;
  }

  .admin-content {
    gap: 12px;
    padding: 4px;
  }

  .admin-card {
    padding: 12px;
    border-radius: 14px;
    max-width: 100%;
  }

  .admin-card__header {
    margin-bottom: 14px;
  }

  .stat-card {
    gap: 12px;
    padding: 12px 0;
  }

  .stat-card__icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .stat-card__label,
  .stat-card__value {
    font-size: 13px;
  }

  .admin-btn {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 13px;
    gap: 6px;
  }

  .admin-btn i {
    font-size: 12px;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 8px 10px;
    min-height: 40px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .table-title {
    font-size: 12px;
  }

  .table-subtext {
    font-size: 11px;
    margin-top: 2px;
  }

  .badge {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .booking-filters {
    gap: 12px;
  }

  .search-box {
    flex: 1 1 100%;
    height: 40px;
    padding: 0 10px;
  }

  .search-box input {
    height: 40px;
    font-size: 13px;
  }

  .booking-toolbar__row {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
    flex: 0 1 100%;
    height: 38px;
    padding: 0 8px;
    margin: 0 4px;
    border-radius: 12px;
  }

  .search-box i {
    font-size: 16px;
  }

  .search-box input {
    height: 38px;
    font-size: 12px;
  }

  .toolbar-actions {
    width: 100%;
    gap: 8px;
  }

  .toolbar-actions .admin-btn {
    flex: 1;
  }

  .admin-modal__panel {
    border-radius: 14px;
  }

  .admin-page-hero {
    padding: 16px;
  }

  .admin-page-hero h2 {
    font-size: 20px;
  }

  .booking-filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-field {
    width: 100%;
  }

  .form-group {
    width: 100%;
  }

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

  .search-box {
    width: 100%;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .admin-btn {
    flex: 1;
  }
}

/* Ultra small screens (very small phones) */
@media (max-width: 480px) {
  .admin-topbar {
    padding: 8px;
  }

  .admin-topbar__left h1 {
    font-size: 13px;
  }

  .admin-main {
    padding: 0;
  }

  .admin-content {
    gap: 0;
    padding: 4px;
  }

  .admin-card {
    margin: 0 4px;
    padding: 12px;
    border-radius: 12px;
    max-width: calc(100% - 8px);
    border-left: 1px solid var(--admin-border);
    border-right: 1px solid var(--admin-border);
  }

  .admin-card:first-child {
    border-top: 1px solid var(--admin-border);
    margin-top: 0;
  }

  .admin-card + .admin-card {
    border-top: 1px solid var(--admin-border);
  }

  .stat-card {
    gap: 10px;
    padding: 10px 0;
  }

  .stat-card__icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .admin-btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 36px;
    padding: 8px;
    font-size: 13px;
  }

  .admin-table {
    font-size: 11px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
  }

  .booking-table-shell {
    padding: 12px;
    margin: 0 4px;
  }

  .booking-table-card {
    border-radius: 12px;
    margin: 0 4px;
  }

  .admin-page-hero {
    padding: 12px;
    margin: 0 4px;
    border-radius: 12px;
  }

  .admin-page-hero h2 {
    font-size: 18px;
  }

  .section-kicker {
    font-size: 10px;
  }

  .booking-filter-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-field,
  .form-group {
    width: 100%;
    margin: 0 auto;
  }

  .booking-toolbar__row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-box {
    width: calc(100% - 8px);
    margin: 0 4px;
  }

  .toolbar-actions {
    width: 100%;
    margin: 0;
    gap: 6px;
  }

  .toolbar-actions .admin-btn {
    flex: 1;
    min-height: 36px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quick-action {
    padding: 12px;
  }

  .quick-action i {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .quick-action strong {
    font-size: 12px;
  }

  .quick-action span {
    font-size: 11px;
  }

  .admin-modal {
    padding: 8px;
  }
}