@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Premium Sea View Varkala Ocean & Sunset Gold Theme */
  --bg-primary: #070d17;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-card: rgba(14, 165, 233, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --primary: #06b6d4; /* Varkala Ocean Turquoise Cyan */
  --primary-hover: #22d3ee;
  --accent: #eab308; /* Metallic Gold */
  --accent-light: #facc15;
  --success: #10b981; /* Tropical Palm Green */
  --danger: #f43f5e; /* Sunset Coral Red */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: 'Cinzel', serif;
  --sidebar-width: 260px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.25);
}

/* Official Gold Brand Typography */
.brand-gold-text {
  font-family: 'Cinzel', serif;
  background: linear-gradient(135deg, #fff7ad 0%, #facc15 35%, #eab308 70%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(234, 179, 8, 0.25);
}

.brand-title-gold-auth {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fff8b3 0%, #facc15 30%, #eab308 60%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.brand-subtitle-gold-auth {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #eab308;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.sidebar-brand-box {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sidebar-title-gold {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fff8b3 0%, #facc15 30%, #eab308 60%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.sidebar-sub-gold {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #eab308;
  text-transform: uppercase;
}

/* Light Theme overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --border-card: rgba(15, 23, 42, 0.06);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #d97706;
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

#app-wrapper {
  width: 100%;
  min-width: 0;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Dynamic background blobs for premium aesthetic */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s infinite alternate;
}
.blob-1 {
  background: var(--primary);
  top: -10%;
  right: -10%;
}
.blob-2 {
  background: var(--accent);
  bottom: -10%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-link:hover, .sidebar-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transform: translateX(4px);
}
.sidebar-link.active i {
  color: var(--primary);
}
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 2rem;
  min-height: 100vh;
  min-width: 0;
  transition: var(--transition);
}

/* Navigation bar */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.nav-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Centered Screen Rotating Progress Loader Overlay */
.global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-loading-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-overlay-card {
  background: var(--bg-card, rgba(22, 32, 54, 0.92));
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.12));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.25);
  border-radius: 1.75rem;
  padding: 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  min-width: 260px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.global-loading-overlay.active .loading-overlay-card {
  transform: scale(1);
}

.spinner-container {
  position: relative;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  animation: spinnerRotate 1.8s linear infinite;
}

.spinner-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.spinner-progress {
  fill: none;
  stroke: url(#spinner-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.2s ease-out;
}

.spinner-logo {
  position: absolute;
  width: 44px;
  height: 44px;
  object-fit: contain;
  animation: logoPulse 2s ease-in-out infinite alternate;
}

@keyframes spinnerRotate {
  0% { transform: rotate(-90deg); }
  100% { transform: rotate(270deg); }
}

@keyframes logoPulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7)); }
}

.loading-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.loading-message {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  letter-spacing: 0.02em;
}

.loading-percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary, #06b6d4);
  font-family: monospace;
}

/* Brand Logo Image styles */
.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}
.brand-logo-img-auth {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
}

/* Page Skeleton / Loader */
.view-loading-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  color: var(--text-secondary);
  gap: 1.2rem;
  font-weight: 500;
  background: var(--bg-card);
  border-radius: 1.5rem;
  border: 1px solid var(--border-card);
  margin-top: 0.5rem;
  animation: fadeIn 0.3s ease-in-out;
}
.view-loading-skeleton i {
  color: var(--primary);
}

/* Auth Page layout */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background: var(--bg-primary);
}
.auth-card {
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  text-align: left;
  animation: shakeError 0.4s ease-in-out;
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-control.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* Buttons */
.btn, a.btn, a.btn:hover, a.btn:focus, a.btn:active {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-secondary);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  opacity: 0.9;
}
.btn-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  aspect-ratio: 1;
}

/* Unified Translucent Overlay Action Button Styles */
.btn-edit-enquiry {
  background: rgba(148, 163, 184, 0.12) !important;
  border: 1px solid #64748b !important;
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}
.btn-edit-enquiry:hover {
  background: rgba(148, 163, 184, 0.25) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(148, 163, 184, 0.3) !important;
  transform: translateY(-2px);
}

.btn-call-guest {
  background: rgba(6, 182, 212, 0.14) !important;
  border: 1px solid #06b6d4 !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
}
.btn-call-guest:hover {
  background: rgba(6, 182, 212, 0.28) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35) !important;
  transform: translateY(-2px);
}

.btn-wa-guest {
  background: rgba(37, 211, 102, 0.12) !important;
  border: 1px solid #25d366 !important;
  color: #4ade80 !important;
  font-weight: 600 !important;
}
.btn-wa-guest:hover {
  background: rgba(37, 211, 102, 0.25) !important;
  border-color: #4ade80 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
  transform: translateY(-2px);
}

.btn-gen-quotation {
  background: rgba(2, 132, 199, 0.14) !important;
  border: 1px solid #0284c7 !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
}
.btn-gen-quotation:hover {
  background: rgba(2, 132, 199, 0.28) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  transform: translateY(-2px);
}

.btn-location {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid #f59e0b !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
}
.btn-location:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  transform: translateY(-2px);
}

.btn-photos {
  background: rgba(168, 85, 247, 0.12) !important;
  border: 1px solid #a855f7 !important;
  color: #c084fc !important;
  font-weight: 600 !important;
}
.btn-photos:hover {
  background: rgba(168, 85, 247, 0.25) !important;
  border-color: #c084fc !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35) !important;
  transform: translateY(-2px);
}

.btn-schedule {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid #10b981 !important;
  color: #34d399 !important;
  font-weight: 600 !important;
}
.btn-schedule:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #34d399 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  transform: translateY(-2px);
}

/* Inputs & Form Elements */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: var(--transition);
}
select.form-control {
  height: 46px;
  box-sizing: border-box;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1em;
}
input.form-control {
  height: 46px;
  box-sizing: border-box;
}

/* Remove number input up/down spinner arrows across all browsers */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
textarea.form-control {
  height: auto;
  min-height: 80px;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow);
  border-radius: 1.25rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.metric-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}
.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Table Card Layout */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-header-bar {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-card);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-card);
}
td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.95rem;
  color: var(--text-primary);
}
tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-new { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.badge-followup { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-confirmed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-lost { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 1.5rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--text-primary);
}

/* Two-column layout in forms */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Custom Floating Toast Alert */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transform: translateX(100px);
  opacity: 0;
  animation: toastIn 0.3s forwards;
}
@keyframes toastIn {
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile responsive utility classes & controls */
.mobile-only {
  display: none !important;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: none;
}
.sidebar-overlay.active {
  display: block;
}

/* Responsive Grid Layouts */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.dashboard-tables-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.dashboard-tables-grid > .table-card {
  width: 100%;
  box-sizing: border-box;
}
.sidebar-logo {
  line-height: 1.2;
}
.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-grow: 1;
}
.tabs-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Responsive adjust */
@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
  }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
    padding: 1rem;
  }
  .top-nav {
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-profile .profile-details {
    display: none;
  }
  .nav-profile {
    padding: 0.25rem;
  }
  .settings-grid,
  .reports-grid,
  .details-grid,
  .dashboard-tables-grid {
    grid-template-columns: 1fr !important;
  }
  .filter-row,
  .tabs-group {
    flex-direction: column;
    align-items: stretch;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    width: 92%;
    padding: 2rem 1.25rem;
  }
  .modal-content {
    width: 95%;
    padding: 1.25rem;
    max-height: 92vh;
  }
  .table-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .table-header-bar input,
  .table-header-bar select {
    max-width: 100% !important;
  }
  .toast-container {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .metric-card {
    padding: 1rem;
  }
  .metric-value {
    font-size: 1.4rem;
  }
}

/* Duplicate detection warning */
.duplicate-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.duplicate-warning a {
  color: var(--primary-hover);
  text-decoration: underline;
  cursor: pointer;
}

/* Button Loading & Double-Click Protection */
button:disabled,
.btn:disabled,
.btn-loading {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn .fa-spin {
  margin-right: 0.4rem;
}

/* Hide Google reCAPTCHA floating badge */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

/* ==========================================================================
   PDF QUOTATION GENERATOR & PREVIEW STYLES
   ========================================================================== */
#modal-quotation .modal-content {
  max-width: 1200px !important;
  width: 95vw !important;
  height: 88vh !important;
  max-height: 88vh !important;
  padding: 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#modal-quotation .quotation-modal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  height: calc(100% - 50px);
  max-height: calc(100% - 50px);
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  #modal-quotation .quotation-modal-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.quotation-control-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.quotation-paper-wrapper {
  background: #0f172a;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border-card);
  height: 100%;
  max-height: 100%;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: auto;
  display: block;
}

/* Printable PDF Document Styles - Fixed Light Theme for Crisp PDF Export */
.pdf-quotation-document {
  width: 210mm;
  min-width: 210mm;
  background: #ffffff !important;
  color: #1e293b !important;
  padding: 6mm 10mm;
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  box-sizing: border-box;
  margin: 0 auto 2rem auto;
  position: relative;
}

.pdf-quotation-document *,
.pdf-quotation-document td,
.pdf-quotation-document p,
.pdf-quotation-document div,
.pdf-quotation-document span,
.pdf-quotation-document li {
  box-sizing: border-box;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none;
  color: #1e293b !important;
}

.pdf-header-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  border-bottom: 2px solid #06b6d4;
  padding-bottom: 6px;
}

.pdf-logo-img {
  max-height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ca8a04;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
  background: #070d17;
}

.pdf-resort-title {
  font-family: 'Cinzel', Georgia, serif !important;
  font-size: 17px;
  font-weight: 800;
  color: #082f49 !important;
  letter-spacing: 0.05em !important;
  margin: 0 0 2px 0;
  text-transform: uppercase !important;
}

.pdf-tagline {
  font-size: 10px;
  color: #0284c7 !important;
  font-weight: 600;
  margin: 0 0 3px 0;
}

.pdf-resort-contact {
  font-size: 9px;
  color: #475569 !important;
  line-height: 1.35;
}

.pdf-quotation-badge {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #ffffff !important;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.pdf-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #06b6d4;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.pdf-info-grid {
  width: 100%;
  border-collapse: collapse;
}

.pdf-info-grid td {
  padding: 2px 5px;
  font-size: 10px;
  color: #334155 !important;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.pdf-table th {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  border: 1px solid #0f172a;
}

.pdf-table td {
  padding: 5px 7px;
  font-size: 10px;
  border: 1px solid #e2e8f0;
  color: #1e293b !important;
}

.pdf-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.pdf-financial-summary {
  width: 260px;
  margin-left: auto;
  border-collapse: collapse;
  margin-top: 6px;
  margin-bottom: 8px;
}

.pdf-financial-summary td {
  padding: 4px 6px;
  font-size: 10px;
  border-bottom: 1px solid #cbd5e1;
  color: #334155 !important;
}

.pdf-financial-summary td.pdf-val {
  text-align: right !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.pdf-financial-summary tr.total-row td {
  background: #087f94 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  border: none;
}

.pdf-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a !important;
  border-bottom: 1.5px solid #06b6d4;
  padding-bottom: 2px;
  margin: 8px 0 4px 0;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.pdf-inclusions-list {
  margin: 0;
  padding-left: 16px;
  font-size: 9.5px;
  color: #334155 !important;
  line-height: 1.45;
}

.pdf-terms-box {
  background: #f1f5f9 !important;
  border: 1px dashed #cbd5e1 !important;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px !important;
  color: #334155 !important;
  line-height: 1.45;
  margin-top: 6px;
}

.pdf-terms-box *,
.pdf-terms-box td,
.pdf-terms-box span {
  color: #334155 !important;
}

.pdf-terms-box strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.pdf-terms-box .pdf-upi-highlight {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

.pdf-footer {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 9px;
  color: #64748b !important;
}

/* Custom High-Contrast Styling for Quotation Amenities Checkboxes */
.quo-inc {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 17px !important;
  height: 17px !important;
  accent-color: #06b6d4 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.quo-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  font-size: 0.85rem !important;
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  user-select: none !important;
  padding: 0.25rem 0.4rem !important;
  border-radius: 0.4rem !important;
  transition: background 0.15s ease !important;
}

.quo-label:hover {
  background: rgba(6, 182, 212, 0.1) !important;
}


