:root {
  --bg: #0b1017;
  --bg-alt: #111827;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2933;
  --danger: #f97373;
  --success-soft: rgba(34, 197, 94, 0.18);
  --highlight-row: rgba(56, 189, 248, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-brand: "Exo 2", system-ui, sans-serif;
  --font-brand2: "Rajdhani", system-ui, sans-serif;

  --footer-h: 75px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text-main);
  background: radial-gradient(circle at top, #1f2937, #020617 55%);
}

.main {
  padding-bottom: calc(var(--footer-h) + 24px);
}

/* Header */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 26px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(90deg, #020617, #020617 40%, #030712);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 600;
}

.logo-icon {
  width: 100px; /* adjust size */
  height: 100px;
}

/* Container for logo text */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Main brand name */
.logo-name {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
}

/* Subtitle below */
.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  font-family: var(--font-brand);
  color: var(--text-muted);
  margin-top: 2px;
}

.app-venue {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-brand2);
}

.nav-clickable {
  cursor: pointer;
}

.nav-clickable:hover {
  opacity: 0.85;
}

/* Shell */

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 52px);
}

/* Sidebar */

.app-sidebar {
  border-right: 1px solid var(--border-subtle);
  background: #020617;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.16s ease;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Main area */

.app-main {
  padding: 24px 28px 32px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-title {
  margin: 0 0 6px;
  font-size: 22px;
}

.view-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Cards & layout */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card-highlight {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-color: rgba(56, 189, 248, 0.3);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
}

/* Stats */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.stat {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: #020617;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
}

/* Buttons */

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  border: none;
  font-size: 13px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.primary-btn {
  background: var(--accent);
  color: #020617;
  font-weight: 600;
}

.primary-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-0.5px);
}

.ghost-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.ghost-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

/* Two-column layout */

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

/* WhatsApp card */

.card-whatsapp {
  position: relative;
}

.whatsapp-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.whatsapp-contact {
  font-weight: 600;
  color: var(--text-main);
}

.whatsapp-bubble {
  background: #075e54;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 92%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.whatsapp-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Form card */

.card-form h2 {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form-field label {
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: #020617;
  color: var(--text-main);
  padding: 7px 9px;
  font-size: 13px;
  resize: none;
}

.form-field input[readonly],
.form-field textarea[readonly] {
  opacity: 0.9;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Confirmation layout */

.confirmation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.card-summary {
  background: #020617;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 14px;
}

.summary-list li {
  padding: 4px 0;
}

.summary-list span {
  display: inline-block;
  width: 80px;
  color: var(--text-muted);
}

.summary-note {
  font-size: 12px;
  color: var(--text-muted);
}

.card-confirm-bubble {
  position: relative;
}

.confirm-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.09em;
}

.confirm-bubble {
  background: #075e54;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.confirmation-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Table */

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.table-header-row h2 {
  margin: 0;
}

.table-caption {
  font-size: 12px;
  color: var(--text-muted);
}

.table-wrapper {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  background: #020617;
}

.reservations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.reservations-table thead {
  background: #020617;
}

.reservations-table th,
.reservations-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.reservations-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}

.reservations-table tbody tr:nth-child(even):not(.row-last-confirmed) {
  background: #020617;
}

.row-last-confirmed {
  background: var(--highlight-row);
}

.table-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* Reservation confirmation modal */

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 24, 0.7); /* dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999; /* above cards and header */
}

.modal-content {
  background: #111826; /* match card background tone */
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(72, 187, 255, 0.25);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: #ffffff;
}

.modal-content p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #d1d5db;
}

.modal-content p strong {
  color: #e5e7eb;
}

.modal-content #confirm-ok {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* Footer */

.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-h);
  padding: 8px 16px;

  background: linear-gradient(
    180deg,
    rgba(13, 26, 38, 0.9) 0%,
    rgba(10, 18, 28, 0.97) 50%,
    rgba(7, 14, 25, 1) 100%
  );

  border-top: 1px solid rgba(77, 214, 185, 0.25);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  z-index: 999;
}

.footer-top {
  font-size: 0.9rem;
  color: #d1d5db;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  color: #4dd6b9;
}

.footer-dot {
  margin: 0 6px;
  color: #6b7280;
}

.footer-venue {
  font-family: var(--font-brand2);
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-bottom: 4px;
}

.footer-social img {
  width: 18px;
  height: 18px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-social img:hover {
  opacity: 1;
}

.footer-bottom {
  font-size: 0.7rem;
  color: #9ca3af;
  opacity: 0.75;
}

.footer-social img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: 0.25s ease;
  filter: drop-shadow(0 0 0px #4dd6b9);
}

.footer-social img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px #4dd6b9);
}

/* Responsive */

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    justify-content: center;
  }

  .two-column-layout,
  .confirmation-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .app-footer {
    position: static;
    height: auto;
  }

  .main {
    padding-bottom: 24px;
  }
}
