/* ==============================================================================
   SAANVI RESORT — ADMIN CRM & BILLING MANAGEMENT SUITE STYLESHEET
   Mobile-First • High-End Aesthetics • Touch-Optimized
   ============================================================================== */

:root {
  --primary: #0f3d27;
  --primary-hover: #165b3b;
  --primary-light: #e8f5ee;
  --gold: #b8902e;
  --gold-light: #fef8eb;
  --gold-border: rgba(184, 144, 46, 0.35);
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #092015;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-focus: #0f3d27;
  
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Sidebar (Desktop) */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  max-height: 34px;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: #94a3b8;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.nav-item.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--gold-border);
}

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

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.top-navbar {
  background: #ffffff;
  height: 68px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  box-sizing: border-box;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(15, 61, 39, 0.2);
}
.db-pill.fallback {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.db-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.db-pill.fallback .db-pill-dot {
  background: var(--warning);
}

/* Content View Body */
.content-area {
  padding: 24px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.view-section {
  display: none;
}
.view-section.active {
  display: block;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.stat-icon.gold { background: var(--gold-light); color: var(--gold); }
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.blue { background: #e0f2fe; color: #0284c7; }

.stat-info .stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-info .stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Container */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

/* Form Controls - Touch Optimized */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s ease;
  min-height: 46px; /* Touch target */
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 61, 39, 0.12);
}

/* Items Table */
.items-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.items-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1.5px solid var(--border-color);
  text-align: left;
}

.items-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.items-table td input {
  padding: 8px 10px;
  font-size: 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  min-height: 38px;
}

.btn-remove-row {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.btn-remove-row:hover { background: #fca5a5; }

/* Preset Chips */
.presets-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.preset-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(15, 61, 39, 0.15);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.preset-chip:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Advance Paid Toggle & Calculation Box */
.advance-box {
  background: #fffbeb;
  border: 1.5px dashed #fde68a;
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 16px 0;
}

.advance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }

/* Payment Modes Radio Chips */
.payment-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.mode-chip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}
.mode-chip-label:hover {
  border-color: var(--primary);
}
.mode-chip-label input {
  accent-color: var(--primary);
}
.mode-chip-label.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 44px;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-gold {
  background: var(--gold);
  color: #ffffff;
}
.btn-gold:hover {
  background: #a37f25;
}
.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  background: #f8fafc;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  min-height: 34px;
}
.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #1eb956;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================================================================
   OFFICIAL BILL / INVOICE LUXURY RESORT DOCUMENT & PRINT STYLING
   ============================================================================= */
.official-bill-document {
  background: #ffffff;
  padding: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Luxury Header Design */
.bill-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 4px;
}

.bill-header-left {
  flex: 1;
}

.bill-logo-container {
  margin-bottom: 10px;
}

.bill-brand-logo {
  max-height: 58px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.bill-contact-meta {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
}

.bill-location-line {
  color: #334155;
  font-weight: 500;
  margin-bottom: 3px;
}

.bill-phones-line {
  margin-bottom: 2px;
}

.bill-phones-line strong,
.bill-email-line strong {
  color: #0f3d27;
}

.bill-gstin-line {
  margin-top: 6px;
}

.gstin-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bill-header-right {
  text-align: right;
  min-width: 240px;
}

.bill-doc-type-badge {
  display: inline-block;
  background: #092015;
  color: #f3e5ab;
  font-family: 'Cinzel', serif, Arial;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(9, 32, 21, 0.2);
}

.bill-invoice-meta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  text-align: left;
}

.inv-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 12px;
}

.inv-meta-row:last-child {
  margin-bottom: 0;
}

.inv-meta-row span {
  color: #64748b;
  font-size: 11.5px;
}

.inv-meta-row strong {
  color: #0f172a;
}

.inv-no {
  font-family: monospace;
  font-size: 13px;
  color: #0f3d27 !important;
}

.inv-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.inv-status-pill.status-paid { background: #dcfce7; color: #15803d; }
.inv-status-pill.status-pending { background: #fee2e2; color: #b91c1c; }
.inv-status-pill.status-advance-paid { background: #fef3c7; color: #b45309; }
.inv-status-pill.status-void, .inv-status-pill.status-cancelled { background: #f1f5f9; color: #64748b; text-decoration: line-through; }

/* Gold Accent Rule */
.bill-gold-accent-rule {
  height: 3px;
  background: linear-gradient(90deg, #092015 0%, #0f3d27 50%, #b8902e 100%);
  margin: 16px 0 18px;
  border-radius: 2px;
}

/* Parties Information Grid */
.bill-info-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.bill-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
}

.info-box-heading {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.info-guest-name {
  font-size: 14px;
  font-weight: 700;
  color: #092015;
}

.info-guest-comp {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-top: 2px;
}

.info-guest-addr {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
}

.info-guest-contact {
  margin-top: 6px;
  font-size: 11.5px;
  color: #475569;
}

.stay-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
}

.stay-info-row span {
  color: #64748b;
}

.stay-info-row strong {
  color: #0f172a;
}

/* Document Table */
.bill-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12px;
}
.bill-doc-table th, .bill-doc-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
}
.bill-doc-table th {
  background: #092015;
  color: #ffffff;
  font-weight: 700;
  font-size: 11.5px;
  text-align: center;
}

/* Footer Bank & Signature */
.bill-footer-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  gap: 20px;
}

.bill-bank-card-premium {
  background: #fdfbf7;
  border: 1.5px solid #e2d9cc;
  border-radius: 8px;
  padding: 12px 16px;
  flex: 1;
  font-size: 11.5px;
}

.bank-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #8c6239;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee5d8;
  padding-bottom: 4px;
}

.bank-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}

.bank-fld {
  display: flex;
  justify-content: space-between;
  color: #1e293b;
}

.bank-fld span {
  color: #64748b;
  margin-right: 6px;
}

.bank-acc-mono {
  font-family: monospace;
  font-size: 12.5px;
  color: #092015;
}

.bill-sign-card-premium {
  text-align: center;
  min-width: 190px;
  padding: 8px 12px;
}

.bill-sign-card-premium .sign-image {
  max-height: 52px;
  margin: 0 auto 4px;
  display: block;
}

.bill-sign-card-premium .sign-caption {
  font-size: 11.5px;
  font-weight: 700;
  color: #092015;
  border-top: 1.5px solid #cbd5e1;
  padding-top: 4px;
}

.bill-sign-card-premium .sign-sub {
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 100;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  padding: 6px;
  cursor: pointer;
}
.mobile-nav-item i {
  font-size: 1.25rem;
}
.mobile-nav-item.active {
  color: var(--primary);
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .official-bill-document, .official-bill-document * {
    visibility: visible;
  }
  .official-bill-document {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
    padding-bottom: 70px;
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .card-body {
    padding: 16px;
  }
  .content-area {
    padding: 16px;
  }
}

/* ==============================================================================
   MEDIA LIBRARY, CMS & ADVANCED BILLING ADMIN EXTENSIONS
   ============================================================================== */

/* Password Toggle Field */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-toggle-wrapper .form-control {
  padding-right: 42px;
}
.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.password-toggle-btn:hover {
  color: var(--primary);
}

/* Media Library Grid */
.media-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.media-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.media-tab-btn:hover, .media-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.media-thumb-box {
  position: relative;
  height: 170px;
  background: #0f3d27;
  overflow: hidden;
}
.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.media-card:hover .media-thumb-img {
  transform: scale(1.05);
}
.media-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 32, 21, 0.85);
  color: #f3e5ab;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.media-hero-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: #092015;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
}
.media-info-box {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.media-title-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.media-caption-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
}
.media-action-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
}
.status-paid { background: #dcfce7; color: #15803d; }
.status-advance { background: #fef3c7; color: #b45309; }
.status-pending { background: #fee2e2; color: #b91c1c; }
.status-void { background: #f1f5f9; color: #64748b; text-decoration: line-through; }
.status-draft { background: #e0f2fe; color: #0369a1; }

/* Pricing Package Card in Admin */
.pricing-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pricing-manage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.pricing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

/* CRM Date Stream & Filter Badges */
.crm-date-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.crm-date-btn:hover {
  border-color: var(--gold, #d4af37);
  color: var(--primary, #092015);
  background: #fdfbf7;
}
.crm-date-btn.active {
  background: var(--primary, #092015) !important;
  color: #ffffff !important;
  border-color: var(--primary, #092015) !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(9, 32, 21, 0.2);
}

.crm-date-group-row {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-top: 2px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.crm-date-group-row td {
  padding: 10px 16px !important;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.84rem;
}
.crm-date-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.crm-date-group-count {
  background: var(--gold, #d4af37);
  color: #092015;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 12px;
  margin-left: 6px;
}

.crm-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.84rem;
}
.crm-date-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}
.crm-badge-today {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.crm-badge-yesterday {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.crm-action-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.crm-action-btn-wa:hover {
  opacity: 0.9;
}
.crm-action-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #092015 !important;
  border: 1px solid #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.crm-action-btn-call:hover {
  background: #e2e8f0;
}


