/* ═══════════════════════════════════════════════════
   VQuint Admin Dashboard Styles — Travel Theme
   ═══════════════════════════════════════════════════ */

:root {
  /* VQuint Theme Colors */
  --bg-body: #FBF8EE; /* Pearl Warm */
  --bg-surface: #FFFFFF;
  --bg-sidebar: #FFFFFF;

  /* Text Colors */
  --text-navy: #1A2B3C;
  --text-primary: #1A2B3C;
  --text-secondary: #5A6B7C;
  --text-muted: #8A96A3;
  --text-light: #CBD5E0;

  /* Accent Colors */
  --blue: #005B96;
  --blue-light: rgba(0, 91, 150, 0.1);
  
  --terra: #E27D60;
  --terra-light: rgba(226, 125, 96, 0.1);

  --green: #4CAF82;
  --green-light: rgba(76, 175, 130, 0.1);
  
  --gold: #E8B84B;
  --gold-light: rgba(232, 184, 75, 0.1);

  /* UI Colors */
  --border-light: rgba(26, 43, 60, 0.08);
  --border-mid: rgba(26, 43, 60, 0.15);
  
  --sidebar-width: 280px;
  --topbar-height: 80px;
  
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-base: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 91, 150, 0.04);
  --shadow-md: 0 12px 24px rgba(0, 91, 150, 0.06);
  --shadow-card: 0 20px 40px rgba(0, 91, 150, 0.06);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-body);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

/* ── Typography & Utilities ─────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.text-light { color: var(--text-muted); }
.text-blue { color: var(--blue); }
.text-terra { color: var(--terra); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-white { color: #FFFFFF; }

.bg-blue-light { background-color: var(--blue-light); }
.bg-terra-light { background-color: var(--terra-light); }
.bg-green-light { background-color: var(--green-light); }
.bg-gold-light { background-color: var(--gold-light); }
.bg-blue { background-color: var(--blue); }
.bg-terra { background-color: var(--terra); }
.bg-green { background-color: var(--green); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green);
}

.dot.bg-blue { background-color: var(--blue); }

/* ── Sidebar ───────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  margin-top: 10px;
}

.logo-box {
  width: 40px;
  height: 40px;
  background-color: var(--text-navy);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-right: 14px;
}

.logo-text h2 {
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--terra);
}

.sidebar-nav {
  flex: 1;
  padding: 32px 20px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 36px;
}

.nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.nav-item i {
  font-size: 1.35rem;
  margin-right: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-item:hover {
  background-color: var(--bg-body);
  color: var(--text-navy);
}

.nav-item:hover i {
  color: var(--blue);
}

.nav-item.active {
  background-color: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}

.nav-item.active i {
  color: var(--blue);
}

.nav-badge {
  position: absolute;
  right: 14px;
  background: var(--terra);
  color: white;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
}

.sidebar-footer {
  padding: 24px 20px;
  border-top: 1px solid var(--border-light);
}

.return-btn {
  margin-bottom: 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
}

.user-profile {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 14px;
  border: 2px solid var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.user-info .user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-navy);
  margin-bottom: 2px;
}

.user-info .user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Main Content Area ─────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  margin-top: 10px;
}

.breadcrumbs {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs i {
  font-size: 0.8rem;
  color: var(--terra);
}

.breadcrumbs strong {
  color: var(--text-navy);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--green-light);
  color: var(--green);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-navy);
  font-size: 1.35rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  background: var(--bg-body);
  color: var(--blue);
  border-color: var(--blue);
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -2px;
  background-color: var(--terra);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-body);
}

.avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Dashboard Content */
.content-wrapper {
  padding: 20px 40px 60px;
  max-width: 1300px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.subtitle {
  font-size: 1.05rem;
  margin-bottom: 36px;
  color: var(--text-secondary);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.metric-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.trend {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.trend.positive { background-color: var(--green-light); color: var(--green); }
.trend.neutral { background-color: var(--bg-body); color: var(--text-secondary); }

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  color: var(--text-navy);
}

.card-body p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Dashboard Bottom Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

/* Shared Card Styles */
.chart-card, .inquiry-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

/* Chart Header */
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.chart-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.icon-btn-sm {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.icon-btn-sm:hover { color: var(--text-navy); }

/* SVG Chart */
.chart-container {
  height: 280px;
  margin-bottom: 32px;
  position: relative;
}

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

.grid-line {
  stroke: var(--border-light);
  stroke-width: 1;
  stroke-dasharray: 6 6;
}

.chart-label, .chart-label-x {
  fill: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-base);
}

.chart-label-x {
  text-anchor: middle;
}

.line-stroke {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-fill {
  fill: url(#gradientBlue);
}

/* Chart Footer */
.chart-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.footer-stat p {
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-stat h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

/* Inquiries Area */
.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.inquiry-header h3 {
  font-size: 1.4rem;
}

.inquiry-sub {
  font-size: 0.9rem;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.inquiry-list {
  list-style: none;
  margin-bottom: 24px;
}

.inquiry-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.inquiry-list li:last-child {
  border-bottom: none;
}

.inquiry-details {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inquiry-avatar {
  width: 44px;
  height: 44px;
  background: var(--bg-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-navy);
}

.inquiry-info h4 {
  font-family: var(--font-base);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.inquiry-info p {
  font-size: 0.8rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--terra);
  color: var(--terra);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--terra);
  color: white;
}

.view-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.view-all-link:hover {
  background: var(--blue-light);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .main-content {
    margin-left: 0;
  }
}
