/* Vishnu Wed - Shaadi Prabandhak Styling (Enhanced Edition) */
:root {
  --primary: #851227;
  --primary-light: #9d1c34;
  --primary-dark: #630c1d;
  --gold: #c9932a;
  --gold-light: #f1cf85;
  --gold-dark: #9e6d11;
  --gold-glow: rgba(201, 147, 42, 0.28);
  --bg-main: #fcf8f2;
  --bg-card: #ffffff;
  --bg-subtle: #f7efe4;
  --text-main: #2a1b1e;
  --text-muted: #6e585d;
  --border-color: #ebdccc;
  --danger: #d9383a;
  --danger-bg: #ffebee;
  --success: #288c50;
  --success-bg: #e8f5e9;
  --warning: #e67e22;
  --warning-bg: #fff3e0;
  --shadow-sm: 0 2px 6px rgba(133, 18, 39, 0.06);
  --shadow-md: 0 6px 16px rgba(133, 18, 39, 0.1);
  --shadow-lg: 0 14px 30px rgba(133, 18, 39, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --bottom-nav-height: 70px;
  --header-height: 64px;
}

[data-theme="dark"] {
  --primary: #c9932a;
  --primary-light: #e8b95d;
  --primary-dark: #a27218;
  --gold: #f3c64c;
  --gold-light: #fae092;
  --gold-dark: #b8860b;
  --gold-glow: rgba(243, 198, 76, 0.25);
  --bg-main: #140d11;
  --bg-card: #20131b;
  --bg-subtle: #2c1a26;
  --text-main: #fdefeb;
  --text-muted: #cbb2b9;
  --border-color: #402637;
  --danger: #ff5252;
  --danger-bg: #3d1418;
  --success: #4caf50;
  --success-bg: #14351b;
  --warning: #ffa726;
  --warning-bg: #3e2712;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Mukta", "Noto Sans Devanagari", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
  padding-top: var(--header-height);
  user-select: none;
  -webkit-user-select: none;
}

/* Allow text select inside inputs & selectable content */
input, textarea, select, .selectable-text {
  user-select: text;
  -webkit-user-select: text;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

/* App Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.22);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title-box h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  line-height: 1.2;
}

.header-title-box p {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
}

.header-icon {
  font-size: 24px;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.icon-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.35);
}

.icon-btn.festive {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: #fff;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 0 rgba(201, 147, 42, 0); }
  50% { box-shadow: 0 0 12px var(--gold-light); }
}

/* App Views Container */
.app-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 12px 14px;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

/* Banner Countdown Card */
.countdown-banner {
  background: linear-gradient(135deg, #7c0b20 0%, #460511 100%);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.countdown-banner::before {
  content: "✨ शुभ विवाह ✨";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
}

.countdown-names {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-names span.heart {
  color: #ff476f;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}

.countdown-date {
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 600;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.time-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-width: 60px;
}

.time-box .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

.time-box .label {
  font-size: 10px;
  color: #f1dfd3;
  text-transform: uppercase;
  font-weight: 600;
}

/* Section Title */
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 16px 0 10px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title span.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--primary);
}

/* Quick Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.stat-card.highlight-red {
  border-left: 4px solid var(--danger);
}
.stat-card.highlight-green {
  border-left: 4px solid var(--success);
}
.stat-card.highlight-gold {
  border-left: 4px solid var(--gold);
}
.stat-card.highlight-blue {
  border-left: 4px solid #0284c7;
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.stat-card .value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.stat-card .sub-value {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Progress bar */
.progress-container {
  margin-top: 8px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-bar-bg {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--primary) 100%);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.progress-fill.overbudget {
  background: var(--danger) !important;
}

/* Warning Callout Card */
.warning-callout {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.warning-callout .warn-icon {
  font-size: 26px;
  color: var(--danger);
  flex-shrink: 0;
}

.warning-callout .warn-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
}

.warning-callout .warn-text p {
  font-size: 12px;
  color: var(--text-main);
}

/* Quick Action Buttons (Dashboard) */
.quick-action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.quick-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.quick-btn:active {
  background: var(--bg-subtle);
  transform: scale(0.94);
}

.quick-btn i {
  font-size: 18px;
  color: var(--primary);
}

.quick-btn span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

/* WhatsApp Family Broadcast Banner */
.whatsapp-report-banner {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.3);
  transition: transform 0.15s;
}

.whatsapp-report-banner:active {
  transform: scale(0.97);
}

.whatsapp-report-banner .text-group h4 {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-report-banner .text-group p {
  font-size: 11px;
  opacity: 0.9;
}

/* Filter Chips / Badges Bar */
.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.chip-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(133, 18, 39, 0.25);
}

.chip-count {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.28);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.chip-btn:not(.active) .chip-count {
  background: var(--bg-subtle);
  color: var(--primary);
}

/* Search Bar with Clear Button */
.search-bar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-bar-wrap input {
  width: 100%;
  padding: 11px 40px 11px 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.search-bar-wrap input:focus {
  border-color: var(--primary);
}

.search-bar-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}

.search-bar-wrap .clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: none;
}

/* Guest Checklist Fast Mode */
.guest-check-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.guest-check-row.is-confirmed {
  background: rgba(22, 163, 74, 0.07);
  border-color: rgba(22, 163, 74, 0.4);
  border-left: 5px solid var(--success);
}

.guest-check-row.is-invited {
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.3);
  border-left: 5px solid #0284c7;
}

.guest-check-row.is-declined {
  opacity: 0.65;
  background: rgba(220, 38, 38, 0.04);
  border-left: 5px solid var(--danger);
}

.guest-tick-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  color: transparent;
  user-select: none;
}

.guest-tick-btn:active {
  transform: scale(0.88);
}

.guest-check-row.is-confirmed .guest-tick-btn {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

.guest-check-row.is-invited .guest-tick-btn {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

.guest-check-row.is-declined .guest-tick-btn {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.guest-row-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.guest-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.guest-row-sno {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--bg-subtle);
  padding: 1px 6px;
  border-radius: 6px;
}

.guest-row-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.guest-row-details {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guest-pax-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--text-main);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.guest-check-row.is-confirmed .guest-pax-pill {
  background: #dcfce7;
  color: #15803d;
}

.guest-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.guest-quick-status-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  white-space: nowrap;
}

/* Guest Cards */
.guest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.guest-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.guest-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.guest-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.badge-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-main);
}

.badge-tag.family { background: #ffe4e6; color: #9f1239; }
.badge-tag.rishtedar { background: #fef3c7; color: #92400e; }
.badge-tag.dost { background: #e0f2fe; color: #0369a1; }
.badge-tag.padosi { background: #dcfce7; color: #166534; }
.badge-tag.office { background: #f3e8ff; color: #6b21a8; }

.guest-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.status-not-invited { background: #fee2e2; color: #b91c1c; }
.status-invited { background: #fef9c3; color: #a16207; }
.status-confirmed { background: #dcfce7; color: #15803d; }
.status-declined { background: #f3f4f6; color: #6b7280; }

.guest-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
  gap: 4px;
}

.guest-contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-btn {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-call {
  background: #0284c7;
  color: #fff;
}

.btn-ecard {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
}

.btn-icon-subtle {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 15px;
  padding: 4px 6px;
  cursor: pointer;
}

/* Category Budget Cards */
.budget-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.budget-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
}

.cat-figures {
  text-align: right;
  font-size: 13px;
}

.cat-spent {
  font-weight: 800;
  color: var(--text-main);
}

.cat-planned {
  font-size: 11px;
  color: var(--text-muted);
}

.cat-warning-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 3px;
  font-weight: 700;
}

/* Vendor Payment Cards */
.vendor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.vendor-card.urgent-due {
  border-left: 4px solid var(--danger);
}

.vendor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vendor-title h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.vendor-work-tag {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 700;
}

[data-theme="dark"] .vendor-work-tag {
  color: var(--gold-light);
}

.vendor-due-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 700;
}

.vendor-due-tag.overdue {
  background: var(--danger-bg);
  color: var(--danger);
}

.vendor-financial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  text-align: center;
}

.v-item .lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.v-item .val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.v-item .val.baki {
  color: var(--danger);
}

/* Shagun & Lifafa Diary Card */
.shagun-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.shagun-card .amount {
  font-size: 17px;
  font-weight: 900;
  color: var(--success);
}

/* Catering Calculation Table & Cards */
.catering-func-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.catering-func-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.catering-numbers-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Digital Shaadi Card / E-Invite Modal Styling */
.digital-card-preview {
  background: linear-gradient(135deg, #7c0b20 0%, #460511 100%);
  color: #fff;
  border: 3px double var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  margin: 12px 0 16px 0;
}

.digital-card-preview .shloka {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
}

.digital-card-preview .ganesha-icon {
  font-size: 32px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.digital-card-preview .title-vivah {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.digital-card-preview .couple-box {
  background: rgba(0,0,0,0.25);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 10px 0;
}

.digital-card-preview .groom-name, .digital-card-preview .bride-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-light);
}

.digital-card-preview .venue-info {
  font-size: 12px;
  color: #fff;
  opacity: 0.95;
  margin-top: 10px;
  line-height: 1.4;
}

/* Tasks / To-Do Card */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.task-card.priority-high {
  border-left: 4px solid var(--danger);
}

.task-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--bg-card);
  transition: all 0.2s;
}

.task-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.task-content {
  flex: 1;
}

.task-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.task-title.done {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
}

.tag-person {
  background: var(--bg-subtle);
  color: var(--primary);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
}

.tag-rasam {
  background: #fdf2f8;
  color: #be185d;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
}

[data-theme="dark"] .tag-rasam {
  background: #46142c;
  color: #f472b6;
}

.tag-due {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.tag-due.near {
  color: var(--danger);
  font-weight: 700;
}

/* Event Timeline */
.timeline-list {
  position: relative;
  padding-left: 20px;
  margin-top: 14px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 20px;
  width: 2px;
  background: var(--gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--gold-light);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.timeline-datetime {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 700;
  margin: 3px 0 6px 0;
}

[data-theme="dark"] .timeline-datetime {
  color: var(--gold-light);
}

.timeline-venue {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Floating Action Button (FAB) */
.fab-btn {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 18px rgba(201, 147, 42, 0.45);
  border: 2px solid #fff;
  cursor: pointer;
  z-index: 90;
  transition: transform 0.2s;
}

.fab-btn:active {
  transform: scale(0.9);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.06);
}

.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  outline: none;
  position: relative;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.15s;
}

.nav-item span {
  font-size: 11px;
  font-weight: 700;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-2px);
  color: var(--primary);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 36px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

/* Bottom Sheet / Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  padding: 20px 18px 30px 18px;
  overflow-y: auto;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-drag-indicator {
  width: 44px;
  height: 5px;
  background: var(--border-color);
  border-radius: 3px;
  margin: 0 auto 14px auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
  transition: all 0.15s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

/* Tabs inside a view */
.sub-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.sub-tab-btn {
  flex: 1;
  padding: 9px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sub-tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #2a1b1e;
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 300;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Rose Petals / Confetti Animation */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #ff476f 20%, #b31034 100%);
  border-radius: 15px 0px 15px 0px;
  opacity: 0.85;
  animation: fall linear forwards;
}

.petal.gold {
  background: radial-gradient(circle, #f3c64c 30%, #b8860b 100%);
  border-radius: 50%;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* Print Styles for A4 Shaadi Booklet */
@media print {
  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
  .app-header, .bottom-nav, #main-fab, .sub-tabs, .filter-scroll, .search-bar-wrap, .btn-primary, .btn-secondary, .contact-btn, .close-btn, .modal-overlay, .whatsapp-report-banner {
    display: none !important;
  }
  .app-container {
    max-width: 100%;
    padding: 0;
  }
  .view-section {
    display: block !important;
    page-break-after: always;
  }
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
}
/* Dual Countdown Specific Styles */
.dual-countdown-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.countdown-banner-card {
  background: linear-gradient(135deg, #7c0b20 0%, #460511 100%);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.countdown-banner-card.highlight-sagai {
  border: 2px solid var(--gold-light);
  background: linear-gradient(135deg, #851227 0%, #520614 100%);
}

.countdown-banner-card.highlight-barat {
  border: 2px solid #e67e22;
  background: linear-gradient(135deg, #6b0c20 0%, #3e040e 100%);
}

.countdown-badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.badge-sagai {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
}

.badge-barat {
  background: linear-gradient(135deg, #e67e22 0%, #b35309 100%);
  color: #fff;
}

.event-countdown-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.event-countdown-date {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 10px;
}
/* Barat Detailed Schedule Styling */
.barat-dual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.barat-group-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
}

.barat-group-box.bundi {
  border-top: 4px solid var(--primary);
}

.barat-group-box.rajnagar {
  border-top: 4px solid var(--warning);
}

.barat-group-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 4px;
}

.barat-timeline-step {
  margin-bottom: 8px;
  font-size: 12px;
}

.barat-timeline-step .label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.barat-timeline-step .time {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.barat-common-ceremony {
  background: linear-gradient(135deg, rgba(201, 147, 42, 0.12) 0%, rgba(133, 18, 39, 0.08) 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 10px;
}

.common-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(201, 147, 42, 0.3);
}

.common-step-item:last-child {
  border-bottom: none;
}

.common-step-item .time-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.common-step-item .desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}


/* ========================================================
   PEHRAVANI (कपड़े का कार्यक्रम) STYLES
   ======================================================== */
.peravni-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.peravni-card.is-ready {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.03);
}

.peravni-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.peravni-sno-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.peravni-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-main);
  flex: 1;
}

.peravni-relation-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(201, 147, 42, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(201, 147, 42, 0.3);
  white-space: nowrap;
}

.peravni-kids-row {
  background: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.peravni-cloth-desc {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 6px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.peravni-cloth-desc i {
  color: var(--secondary);
}

.peravni-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.peravni-status-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.peravni-status-btn.status-pending {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.35);
}

.peravni-status-btn.status-pending:hover {
  background: rgba(217, 119, 6, 0.2);
}

.peravni-status-btn.status-ready {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.peravni-note-btn {
  background: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peravni-note-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.peravni-filter-chip {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.peravni-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
