/* =====================================================================
   HARSHIT & ISHITA WEDDING COMMAND CENTER
   Clean, Editorial Luxury Theme
   ===================================================================== */

:root {
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --bg: #f9f8f5;
  --surface: #ffffff;
  --surface-muted: #f4f2ee;
  --border: #eae5de;
  --border-subtle: #f0ece6;

  --primary: #3b1b2f;
  --primary-hover: #4e243e;
  --primary-light: #f5eff3;

  --gold: #b3882a;
  --gold-light: #faf5e8;
  --gold-border: #e8d9b5;

  --text: #1f1d20;
  --text-muted: #6c666e;
  --text-subtle: #948c96;

  --success: #186b44;
  --success-bg: #eaf6ef;
  --success-border: #bde0cd;

  --warning: #ad7205;
  --warning-bg: #fdf6e7;
  --warning-border: #f5e0b3;

  --danger: #a52b41;
  --danger-bg: #fdf0f3;
  --danger-border: #f5c5ce;

  --groom: #294c73;
  --groom-bg: #edf4fb;
  --groom-border: #c7dbf0;

  --bride: #8e234c;
  --bride-bg: #fcf0f4;
  --bride-border: #f2cbda;

  --friends: #3d683a;
  --friends-bg: #f0f6ef;
  --friends-border: #cde4cb;

  --shadow-sm: 0 1px 3px rgba(31, 29, 32, 0.04);
  --shadow-md: 0 4px 16px rgba(31, 29, 32, 0.06);
  --shadow-lg: 0 12px 36px rgba(31, 29, 32, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* =====================================================================
   PASSWORD OVERLAY
   ===================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 28, 0.82);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-brand .login-monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(59, 27, 47, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.login-brand h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.login-brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.login-field {
  text-align: left;
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.password-input-wrap {
  position: relative;
  display: flex;
}

.password-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.password-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 27, 47, 0.08);
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
}

.login-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

.login-remember {
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.login-hint-box {
  margin-top: 24px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  font-size: 12px;
  color: var(--text-muted);
}

.login-hint-box code {
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
}

/* =====================================================================
   APP SHELL LAYOUT
   ===================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--primary);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.brand {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 8px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f7e4be;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item .nav-icon {
  font-size: 16px;
  opacity: 0.8;
  width: 20px;
}

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

.nav-item.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav-item.active .nav-icon {
  color: var(--primary);
  opacity: 1;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
}

.profile-card .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f7e4be;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.profile-info small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.lock-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  padding: 4px;
}

.lock-icon-btn:hover {
  color: #ffffff;
}

/* =====================================================================
   MAIN AREA & TOPBAR
   ===================================================================== */
.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: rgba(249, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.mobile-brand {
  display: none;
}

.topbar-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.topbar-venue, .topbar-dates {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 32px 36px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
}

/* Page Section visibility */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

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

/* =====================================================================
   SHARED BUTTONS & CONTROLS
   ===================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-hover);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--surface-muted);
}

.button.compact {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.button.wide {
  width: 100%;
}

.text-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.text-link:hover {
  text-decoration: underline;
}

/* =====================================================================
   OVERVIEW SECTION
   ===================================================================== */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 6px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

.hero-badge {
  text-align: right;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.badge-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-badge strong {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--primary);
}

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

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-glyph {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.metric-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.metric-card small {
  color: var(--text-muted);
  font-size: 12px;
}

.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

/* Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.clean-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

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

.panel-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.panel-header h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.family-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.family-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
}

.stat-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.side-indicator.groom, .dot.groom { background: var(--groom); }
.side-indicator.bride, .dot.bride { background: var(--bride); }
.side-indicator.friends, .dot.friends { background: var(--friends); }

.stat-row-left strong {
  display: block;
  font-size: 14px;
}

.stat-row-left small {
  color: var(--text-muted);
  font-size: 12px;
}

.pax-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.allocation-bar-wrap {
  margin-top: 14px;
}

.allocation-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-muted);
  gap: 2px;
}

.bar-groom { background: var(--groom); }
.bar-bride { background: var(--bride); }
.bar-friends { background: var(--friends); }

.allocation-bar-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.allocation-bar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Quick Timeline */
.quick-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.day-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.mini-event-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}

.mini-event-item time {
  color: var(--text-muted);
  font-weight: 500;
}

.mini-event-item strong {
  display: block;
  color: var(--text);
}

.mini-event-item small {
  color: var(--text-muted);
}

/* =====================================================================
   GUESTS & RSVP SECTION
   ===================================================================== */
.section-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title-bar h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.guest-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.guest-stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.guest-stat-pill.success {
  border-color: var(--success-border);
  background: var(--success-bg);
}

.guest-stat-pill.warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
}

.guest-stat-pill.danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.pill-number {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.guest-stat-pill.success .pill-number { color: var(--success); }
.guest-stat-pill.warning .pill-number { color: var(--warning); }
.guest-stat-pill.danger .pill-number { color: var(--danger); }

.pill-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Guest Toolbar */
.guest-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.category-tabs {
  display: flex;
  gap: 6px;
}

.guest-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.guest-tab:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.guest-tab.active {
  background: var(--primary);
  color: #ffffff;
}

.tab-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
}

.guest-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 14px;
}

.search-box input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  outline: none;
  font-size: 13px;
}

.search-box input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.clean-select {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-size: 13px;
  color: var(--text);
  outline: none;
  cursor: pointer;
}

/* Clean Guest Table */
.clean-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-header-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 1.3fr 1.8fr 70px;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.guest-list-container {
  display: flex;
  flex-direction: column;
}

.guest-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 1.3fr 1.8fr 70px;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.1s ease;
}

.guest-row:hover {
  background-color: #faf9f6;
}

.guest-row:last-child {
  border-bottom: none;
}

.guest-name-cell strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.guest-name-cell small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Badges */
.guest-side-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.guest-side-badge.groom {
  background: var(--groom-bg);
  color: var(--groom);
  border: 1px solid var(--groom-border);
}

.guest-side-badge.bride {
  background: var(--bride-bg);
  color: var(--bride);
  border: 1px solid var(--bride-border);
}

.guest-side-badge.friends {
  background: var(--friends-bg);
  color: var(--friends);
  border: 1px solid var(--friends-border);
}

.guest-relation-tag {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.guest-headcount-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.guest-diet-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--text-muted);
  margin-right: 6px;
}

.guest-room-tag {
  display: block;
  font-size: 12px;
  color: var(--text);
  margin-top: 2px;
}

/* 3-Way RSVP Toggle Button */
.rsvp-toggle-group {
  display: inline-flex;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}

.rsvp-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s ease;
}

.rsvp-btn:hover {
  color: var(--text);
}

.rsvp-btn.coming.active {
  background: var(--success);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rsvp-btn.pending.active {
  background: var(--warning);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rsvp-btn.not_coming.active {
  background: var(--danger);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.guest-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-icon-subtle {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  border-radius: 4px;
}

.btn-icon-subtle:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.btn-icon-subtle.delete:hover {
  color: var(--danger);
}

/* =====================================================================
   SCHEDULE / EVENTS SECTION
   ===================================================================== */
.segmented-control {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.day-tab {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.day-tab.active {
  background: var(--primary);
  color: #ffffff;
}

.detailed-events-list {
  display: flex;
  flex-direction: column;
}

.event-item-card {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.event-item-card:last-child {
  border-bottom: none;
}

.event-time-col strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
}

.event-time-col small {
  color: var(--text-muted);
  font-size: 12px;
}

.event-details-col h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.event-details-col p {
  color: var(--text-muted);
  font-size: 14px;
}

.event-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text);
  justify-self: end;
}

/* =====================================================================
   VENUE & STAY SECTION
   ===================================================================== */
.venue-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.venue-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}

.venue-profile-left h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.venue-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.venue-facts {
  display: flex;
  gap: 28px;
}

.fact-box small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fact-box strong {
  font-size: 16px;
  color: var(--text);
}

.hotel-monogram-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid rgba(59, 27, 47, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
}

.room-allocation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.room-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.room-stat-box.highlight {
  border-color: var(--gold-border);
  background: var(--gold-light);
}

.side-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.side-pill.groom { background: var(--groom-bg); color: var(--groom); }
.side-pill.bride { background: var(--bride-bg); color: var(--bride); }
.side-pill.total { background: var(--gold-border); color: #6b4d00; }

.room-stat-box h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 6px;
}

.room-stat-box p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* =====================================================================
   MODAL DIALOGS
   ===================================================================== */
dialog {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 90%;
  margin: auto;
}

dialog::backdrop {
  background: rgba(31, 20, 28, 0.6);
  backdrop-filter: blur(8px);
}

.clean-dialog-form {
  padding: 28px 32px;
}

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

.dialog-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input, .form-group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  outline: none;
  font-size: 14px;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   TASKS SECTION
   ===================================================================== */
.tasks-table-header {
  display: grid;
  grid-template-columns: 38px 2.2fr 1.2fr 1fr 1fr 0.8fr 60px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.tasks-container {
  display: flex;
  flex-direction: column;
}

.task-item-row {
  display: grid;
  grid-template-columns: 38px 2.2fr 1.2fr 1fr 1fr 0.8fr 60px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.1s ease;
}

.task-item-row:hover {
  background-color: #faf9f6;
}

.task-item-row:last-child {
  border-bottom: none;
}

.task-item-row.done .task-title-cell strong {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-item-row.done {
  opacity: 0.72;
}

.task-checkbox-col {
  width: 38px;
  display: flex;
  align-items: center;
}

.task-checkbox-col input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.task-title-cell {
  flex: 2.2;
}

.task-title-cell strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.task-title-cell small {
  color: var(--text-muted);
  font-size: 12px;
}

.owner-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
}

.owner-pill.harshit {
  background: var(--groom-bg);
  color: var(--groom);
  border-color: var(--groom-border);
}

.owner-pill.ishita {
  background: var(--bride-bg);
  color: var(--bride);
  border-color: var(--bride-border);
}

.owner-pill.both {
  background: #f7eff6;
  color: var(--primary);
  border-color: #e5d1e2;
}

.owner-pill.family {
  background: #fdf5ea;
  color: #92540c;
  border-color: #f7e0bc;
}

.owner-pill.vendors {
  background: #eef4f8;
  color: #1e5270;
  border-color: #cbe0ee;
}

.category-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
}

.due-tag {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

.priority-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-tag.high {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.priority-tag.medium {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.priority-tag.low {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* =====================================================================
   FINANCES SECTION
   ===================================================================== */
.finance-table-header {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 1fr 1fr 60px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.finance-list-container {
  display: flex;
  flex-direction: column;
}

.finance-item-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 1fr 1fr 60px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.1s ease;
}

.finance-amt-lbl {
  display: none;
}

.finance-item-row:hover {
  background-color: #faf9f6;
}

.finance-item-row:last-child {
  border-bottom: none;
}

.finance-title-cell strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.finance-title-cell small {
  color: var(--text-muted);
  font-size: 12px;
}

.amount-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.amount-text.paid {
  color: var(--success);
}

.amount-text.balance {
  color: var(--warning);
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.paid {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.status-badge.partial {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.status-badge.due {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

/* =====================================================================
   MOBILE NAVIGATION DOCK & RESPONSIVE DESIGN
   ===================================================================== */
.mobile-bottom-nav {
  display: none;
}

.mobile-home-pill {
  display: none;
}

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 200px 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .table-header-row, .guest-row {
    grid-template-columns: 2fr 1fr 1fr 1.6fr 50px;
  }
  .th-room, .guest-room-cell { display: none; }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .sidebar {
    display: none;
  }

  .main-area {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }

  .content {
    padding: 16px 14px calc(76px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Sticky Top Bar & Clickable Brand Home */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 14px;
    background: rgba(255, 250, 245, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-monogram {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59, 27, 47, 0.2);
  }

  .mobile-brand-info {
    display: flex;
    flex-direction: column;
  }

  .mobile-brand-info strong {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--primary);
    line-height: 1.15;
  }

  .mobile-brand-info small {
    font-size: 11px;
    color: var(--text-muted);
  }

  .topbar-meta {
    display: none;
  }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    padding: 6px 10px;
    font-size: 12px;
    border-color: var(--gold-border);
    color: var(--primary);
    background: #fffcf8;
  }

  /* Hero Card */
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .hero-content h1 {
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.15;
  }

  .hero-content p {
    font-size: 13px;
  }

  .hero-badge {
    border-left: none;
    padding-left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
  }

  /* Overview Metrics Grid */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .metric-card {
    padding: 14px 12px;
    gap: 10px;
  }

  .metric-glyph {
    width: 36px;
    height: 36px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .metric-info strong {
    font-size: 19px;
  }

  .metric-info small {
    font-size: 11px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mini-event-item {
    grid-template-columns: 90px 1fr;
    gap: 10px;
    font-size: 12px;
  }

  /* Section Title Bar & Action Buttons */
  .section-title-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-title-bar h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .action-buttons button {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Guest Stat Pills */
  .guest-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .guest-stat-pill {
    padding: 10px 12px;
    gap: 6px;
  }

  .guest-stat-pill strong {
    font-size: 19px;
  }

  .guest-stat-pill small {
    font-size: 11px;
  }

  /* Filter Tabs with Smooth Horizontal Swipe */
  .guest-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .toolbar-filters {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .toolbar-filters::-webkit-scrollbar {
    display: none;
  }

  .guest-tab, .task-tab {
    padding: 7px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .search-box {
    width: 100%;
  }

  /* Guests Mobile Card View */
  .table-header-row {
    display: none;
  }

  .guest-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    position: relative;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }

  .guest-row .guest-actions-cell {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
  }

  .guest-row .guest-name-cell {
    padding-right: 64px;
  }

  .guest-row .guest-name-cell strong {
    font-size: 15px;
    line-height: 1.25;
  }

  .guest-side-cell,
  .guest-pax-cell,
  .guest-room-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .guest-rsvp-cell {
    width: 100%;
    margin-top: 2px;
  }

  .rsvp-toggle-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 6px;
  }

  .rsvp-btn {
    padding: 9px 4px;
    font-size: 12px;
    justify-content: center;
    border-radius: 6px;
  }

  /* Tasks Mobile Card View */
  .tasks-table-header {
    display: none;
  }

  .task-item-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }

  .task-item-row .guest-actions-cell {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .task-item-row .task-checkbox-col {
    position: absolute;
    top: 14px;
    left: 12px;
    width: 24px;
  }

  .task-title-cell {
    padding-left: 28px;
    padding-right: 64px;
  }

  .task-title-cell strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .task-owner-cell,
  .task-category-cell,
  .task-due-cell,
  .task-priority-cell {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 28px;
  }

  /* Finances Mobile Card View */
  .finance-summary-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .finance-stat-card {
    padding: 16px;
  }

  .finance-table-header {
    display: none;
  }

  .finance-item-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 14px;
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }

  .finance-item-row .guest-actions-cell {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .finance-title-cell {
    padding-right: 64px;
  }

  .finance-title-cell strong {
    font-size: 15px;
    line-height: 1.3;
  }

  .finance-category-cell,
  .finance-owner-cell,
  .finance-status-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .finance-amt-lbl {
    display: inline-block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
  }

  .finance-quoted-cell,
  .finance-paid-cell,
  .finance-balance-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
  }

  /* Schedule / Events Mobile View */
  .day-tabs-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .day-tab {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }

  .event-item-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
  }

  .event-time-col {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .event-location-badge {
    align-self: flex-start;
  }

  /* Venue & Stay Mobile View */
  .hotel-hero-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 16px;
  }

  .room-allocation-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hotel-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Dialogs / Modals on Mobile */
  dialog {
    width: 94%;
    max-width: 94%;
    max-height: 88vh;
    padding: 20px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mobile Sticky Bottom Navigation Dock */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 18px rgba(59, 27, 47, 0.08);
    z-index: 999;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 2px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-nav-item.active {
    color: var(--primary);
    font-weight: 700;
  }

  .mobile-nav-icon {
    font-size: 17px;
    line-height: 1.1;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    transform: translateY(-1px);
  }

  .mobile-nav-label {
    line-height: 1;
    letter-spacing: -0.01em;
  }
}

