/**
 * Chinari Pvt. Ltd. - Jyotish Management System
 * Primary Stylesheet (Responsive, Variable-Driven, Pure CSS3)
 */

:root {
  /* Brand Palette: Vedic Deep Navy & Sacred Gold */
  --primary: #182848;
  --primary-hover: #223763;
  --primary-light: #eff4fc;
  --accent: #b48518;
  --accent-hover: #966c10;
  --accent-light: #fffaf0;
  --accent-border: #ebd9a7;
  
  /* Neutral Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #b48518;
  
  /* Status Colors */
  --status-pending-bg: #fffbeb;
  --status-pending-text: #b45309;
  --status-pending-border: #fde68a;
  
  --status-confirmed-bg: #f0fdf4;
  --status-confirmed-text: #15803d;
  --status-confirmed-border: #bbf7d0;
  
  --status-cancelled-bg: #fef2f2;
  --status-cancelled-text: #b91c1c;
  --status-cancelled-border: #fecaca;
  
  --status-info-bg: #eff6ff;
  --status-info-text: #1d4ed8;
  --status-info-border: #bfdbfe;

  /* Typography */
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Layout Sizing */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(24, 40, 72, 0.12);
  --transition: all 0.2s ease-in-out;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1 0 auto;
  padding: 2.5rem 0;
}

/* Top Notification / Banner */
.top-notice-bar {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a4374 100%);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  font-family: var(--font-serif);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(24, 40, 72, 0.2);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(180, 133, 24, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-color);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.btn-success {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.btn-success:hover {
  background: #15803d;
  color: #fff;
}

/* Flash Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-close {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0 0.25rem;
}
.alert-close:hover { opacity: 1; }

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3, .card-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.card-body {
  padding: 1.5rem;
}
.card-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

/* Auth Pages (Login/Register) */
.auth-wrapper {
  max-width: 540px;
  margin: 2rem auto;
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header .brand-symbol {
  margin: 0 auto 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.form-label .required {
  color: #dc2626;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 133, 24, 0.15);
}
.form-control[readonly], .form-control:disabled {
  background-color: var(--bg-subtle);
  cursor: not-allowed;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.badge-pending, .badge-paymentpending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}
.badge-paymentsubmitted, .badge-pendingverification {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.badge-confirmed, .badge-verified, .badge-completed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed-text);
  border-color: var(--status-confirmed-border);
}
.badge-cancelled, .badge-rejected {
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled-text);
  border-color: var(--status-cancelled-border);
}
.badge-info {
  background: var(--status-info-bg);
  color: var(--status-info-text);
  border-color: var(--status-info-border);
}
.badge-count {
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.table th {
  background: var(--bg-subtle);
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}
.table tr:hover td {
  background-color: rgba(248, 250, 252, 0.8);
}

/* Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.dashboard-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  height: fit-content;
}

.profile-summary {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.customer-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #2a4374 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: bold;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--accent);
}

.code-pill {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: bold;
}

.dash-nav {
  list-style: none;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
  transition: var(--transition);
}
.dash-nav-link:hover, .dash-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Stats Metrics Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--primary-light);
  color: var(--primary);
}
.stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Visit Record Timeline & Cards */
.visit-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.visit-card {
  border-left: 4px solid var(--accent);
}
.readonly-notice {
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Chat System */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.chat-header {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fcfcfc;
}
.chat-bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 2px;
}
.chat-bubble.mine .chat-time {
  color: rgba(255, 255, 255, 0.7);
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: #e2e8f0;
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}
.chat-bubble.theirs .chat-time {
  color: var(--text-muted);
}
.chat-time {
  font-size: 0.72rem;
  margin-top: 0.35rem;
  text-align: right;
  display: block;
}
.chat-input-area {
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
}

/* Landing Page Styles */
.hero-section {
  background: linear-gradient(135deg, #101c34 0%, #1e335b 60%, #2a4374 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-section h1 {
  color: #ffffff;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--accent-border);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}
.hero-badge-item {
  display: flex;
  flex-direction: column;
}
.hero-badge-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-badge-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.hero-feature-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Services Grid */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 3px solid var(--accent);
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================
   Enhanced Responsive Media Queries (Phones, Tablets, Laptops)
   ========================================================== */

/* Laptop / Smaller Desktops (Max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-section h1 {
    font-size: 2.35rem;
  }
}

/* Tablets / Medium Screens (Max-width: 900px) */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .hero-section {
    padding: 3.5rem 0;
  }
}

/* Mobile Devices / Phones (Max-width: 768px) */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.open {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-tagline {
    font-size: 1.05rem;
  }
  .card-header, .card-body {
    padding: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Phones (Max-width: 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 1rem;
  }
  .hero-section {
    padding: 2.5rem 0;
  }
  .hero-badges {
    flex-direction: column;
    gap: 1rem;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-symbol {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .header-inner {
    height: 64px;
  }
  .nav-menu {
    top: 64px;
  }
  .chat-container {
    height: 420px;
  }
  .chat-bubble {
    max-width: 90%;
  }
}
/* Customer Dashboard Responsive Layout Overhauls */
.welcome-card {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #182848 0%, #2a4374 100%);
  color: #fff;
}
.welcome-card-body {
  padding: 2rem;
}
.welcome-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.welcome-tag {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.welcome-heading {
  color: #fff;
  font-size: 1.8rem;
  margin: 0.3rem 0;
}
.welcome-subtext {
  color: #cbd5e1;
  margin: 0;
  font-size: 0.95rem;
}
.welcome-id-pill {
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Stat Icon Custom Colors */
.stat-icon-archive { background: var(--accent-light); color: var(--accent); }
.stat-icon-pending { background: #fefce8; color: #b45309; }
.stat-icon-messages { background: #eff6ff; color: #1d4ed8; }

/* Upcoming Section Grid Fixes */
.card-spacing {
  margin-bottom: 2rem;
}
.upcoming-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.upcoming-badge-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.upcoming-service-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.upcoming-details {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.upcoming-reason {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.upcoming-action-box {
  text-align: right;
  background: var(--bg-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}
.fee-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.fee-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.2rem 0 0.75rem;
}
.status-review-text {
  font-size: 0.85rem;
  color: #b45309;
  font-weight: 600;
}
.status-confirmed-text {
  font-size: 0.85rem;
  color: #15803d;
  font-weight: 600;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.empty-title {
  margin-bottom: 0.5rem;
}
.empty-desc {
  max-width: 450px;
  margin: 0 auto 1.25rem;
  font-size: 0.92rem;
}
.empty-visits-text {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  margin: 0;
}



/*....................................................................*/



/* Mobile Screen Breakpoints for Dashboard Elements */
@media (max-width: 768px) {
  .upcoming-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .upcoming-action-box {
    text-align: left;
  }
  .welcome-card-body {
    padding: 1.25rem;
  }
  .welcome-heading {
    font-size: 1.4rem;
  }
  .welcome-subtext {
    font-size: 0.85rem;
  }
  .welcome-sep {
    display: none;
  }
}



/*....................................................................*/
/* Admin Chat Master Layout & Multi-User Grid */
.chat-master-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  height: 650px;
}
.chat-sidebar-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.chat-sidebar-header {
  padding: 1rem;
}
.chat-threads-scroll {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
}
.chat-thread-item {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  background: #ffffff;
  transition: var(--transition);
}
.chat-thread-item:hover {
  background: var(--bg-subtle);
}
.chat-thread-item.active-thread {
  background: var(--primary-light, #f0f4f8);
  border-left: 4px solid var(--primary);
}
.thread-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.thread-client-name {
  color: var(--primary);
  font-size: 0.95rem;
}
.unread-pill {
  background: #dc2626 !important;
  color: #fff !important;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.thread-client-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0;
}
.thread-last-msg {
  font-size: 0.82rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-pane-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.empty-chat-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}
.mobile-back-btn {
  display: none;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-right: 0.5rem;
  font-size: 0.95rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
  .chat-master-layout {
    grid-template-columns: 260px 1fr;
    height: 600px;
  }
}

@media (max-width: 768px) {
  .chat-master-layout {
    grid-template-columns: 1fr;
    height: 520px;
  }
  
  /* If a customer is selected on mobile, hide the thread list and display the active chat pane */
  .chat-active-mobile .chat-sidebar-card {
    display: none;
  }
  .chat-active-mobile .chat-pane-card {
    display: flex;
  }
  
  /* If no customer is selected on mobile, show the list, hide the chat placeholder pane */
  .chat-master-layout:not(.chat-active-mobile) .chat-pane-card {
    display: none;
  }
  
  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
  }
  .desktop-hide {
    display: inline;
  }
  .mobile-hide {
    display: none !important;
  }
  .chat-container {
    height: 100% !important;
    border-radius: var(--radius-sm);
  }
  .chat-input-area {
    padding: 0.5rem;
  }
  .chat-send-btn {
    padding: 0.6rem 1rem !important;
  }
}




/*....................................................................*/


/* Contact Page Mobile & Desktop Layout Overhauls */
.contact-page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}
.contact-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.contact-page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}
.contact-card-spacing {
  margin-bottom: 1.5rem;
}
.contact-section-title {
  margin-bottom: 1rem;
  color: var(--primary);
}
.contact-p {
  margin-bottom: 0.5rem;
}
.contact-hours-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}
.contact-textarea {
  min-height: 120px;
}

/* Mobile Screen Breakpoints */
@media (max-width: 768px) {
  .contact-page-wrapper {
    padding: 0 0.5rem;
  }
  .contact-page-header {
    margin-bottom: 1.5rem;
  }
  .contact-page-header h1 {
    font-size: 1.6rem;
  }
  .contact-page-subtitle {
    font-size: 0.95rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-card-spacing {
    margin-bottom: 1rem;
  }
}

