/* ═══════════════════════════════════════════
   Brahmin Sammelan Booking - Style Sheet
   ═══════════════════════════════════════════ */

:root {
  --saffron: #FF6B00;
  --saffron-dark: #cc5500;
  --gold: #D4A017;
  --gold-light: #F5E6A0;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --text-light: #777;
  --border: #e0cca0;
  --success: #2e7d32;
  --error: #c62828;
  --pending: #e65100;
  --approved: #2e7d32;
  --rejected: #b71c1c;
  --shadow: 0 4px 24px rgba(180,120,0,0.13);
}

/* ── BOOKING FORM WRAP ─────────────────────────── */
#bsb-wrap {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Segoe UI', 'Noto Sans Devanagari', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  padding: 0 0 40px;
}

/* ── HEADER ─────────────────────────────────────── */
#bsb-header {
  background: linear-gradient(135deg, #8B1A00 0%, #D4380D 45%, #FF6B00 100%);
  color: #fff;
  text-align: center;
  padding: 28px 20px 22px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 24px rgba(180,60,0,0.25);
  margin-bottom: 24px;
}
.bsb-om {
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}
#bsb-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
#bsb-header h2 {
  font-size: 0.88rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: #ffe0c0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.bsb-date-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  padding: 5px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #fff5e0;
}
.bsb-venue {
  font-size: 0.8rem;
  color: #ffe0c0;
  margin-bottom: 4px;
}
.bsb-wa {
  font-size: 0.84rem;
  color: #fff;
}

/* ── FORM CARD ───────────────────────────────────── */
#bsb-form-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 28px 24px;
  margin: 0 12px;
}
#bsb-form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--saffron-dark);
  margin: 0 0 4px;
}
.bsb-sub {
  color: var(--text-light);
  font-size: 0.82rem;
  margin: 0 0 22px;
}

/* ── FIELDS ─────────────────────────────────────── */
.bsb-field {
  margin-bottom: 18px;
}
.bsb-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.bsb-field label span {
  color: var(--error);
}
.bsb-field input,
.bsb-field select,
.bsb-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 0.97rem;
  color: var(--text-dark);
  background: #fffdf7;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.bsb-field input:focus,
.bsb-field select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.bsb-field input.bsb-valid {
  border-color: #43a047;
  background: #f0fff4;
}
.bsb-field input.bsb-invalid {
  border-color: var(--error);
  background: #fff5f5;
}

/* ── MOBILE VERIFY ──────────────────────────────── */
.bsb-mobile-wrap {
  display: flex;
  gap: 8px;
}
.bsb-mobile-wrap input {
  flex: 1;
}
#bsb_verify_btn {
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
#bsb_verify_btn:hover { background: var(--saffron-dark); }

.bsb-warn {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 5px;
  font-weight: 600;
}

/* ── 2-COL ROW ──────────────────────────────────── */
.bsb-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── SUBMIT BTN ─────────────────────────────────── */
#bsb_submit_btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF6B00, #D4380D);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(255,107,0,0.35);
}
#bsb_submit_btn:hover { opacity: 0.93; transform: translateY(-1px); }
#bsb_submit_btn:active { transform: translateY(0); }

#bsb_msg {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 12px;
  min-height: 22px;
  font-weight: 600;
}

/* ── POPUPS ─────────────────────────────────────── */
.bsb-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsb-popup-box {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 28px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  border-top: 5px solid var(--saffron);
}
.bsb-popup-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 700;
}
#bsb_popup_number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--saffron-dark);
  letter-spacing: 4px;
  background: #fff5e5;
  border-radius: 12px;
  padding: 12px 0;
  margin-bottom: 18px;
}
.bsb-popup-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.bsb-popup-btns button, #bsb_date_ok {
  padding: 11px 22px;
  border-radius: 9px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
#bsb_confirm_yes { background: var(--success); color: #fff; }
#bsb_confirm_no  { background: #e0e0e0; color: #333; }
#bsb_date_ok { background: var(--saffron); color: #fff; padding: 11px 32px; margin-top: 14px; }
.bsb-popup-icon { font-size: 2.5rem; margin-bottom: 8px; }
.bsb-popup-msg { font-size: 0.93rem; color: var(--text-mid); line-height: 1.6; }

/* ── PUBLIC TABLE ────────────────────────────────── */
#bsb-public-wrap {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 12px;
}
#bsb-public-wrap h3 { color: var(--saffron-dark); }
.bsb-pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bsb-pub-table th {
  background: #ff6b00;
  color: #fff;
  padding: 9px 10px;
  text-align: left;
}
.bsb-pub-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0e0c0;
  word-break: break-word;
}
.bsb-pub-table tr:nth-child(even) { background: #fff8f0; }

/* ═══════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════ */
#bsb-admin-wrap {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 12px;
  color: #222;
}

/* ── LOGIN ──────────────────────────────────────── */
#bsb-admin-login {
  max-width: 340px;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border-top: 5px solid var(--saffron);
}
.bsb-admin-logo { font-size: 2.5rem; margin-bottom: 8px; }
#bsb-admin-login h3 { margin: 0 0 20px; color: #333; }
#bsb_admin_pass {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 1rem;
  margin-bottom: 14px;
  box-sizing: border-box;
}
#bsb_admin_login_btn {
  width: 100%;
  padding: 12px;
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
#bsb_login_err { color: var(--error); font-size: 0.85rem; margin-top: 8px; }

/* ── ADMIN TOP BAR ──────────────────────────────── */
.bsb-admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.bsb-admin-topbar h3 { margin: 0; color: var(--saffron-dark); }
.bsb-btn-blue {
  background: #1565c0; color: #fff; border: none;
  border-radius: 7px; padding: 8px 16px; font-size: 0.85rem;
  font-weight: 700; cursor: pointer; margin-right: 6px;
}
.bsb-btn-red {
  background: var(--error); color: #fff; border: none;
  border-radius: 7px; padding: 8px 16px; font-size: 0.85rem;
  font-weight: 700; cursor: pointer;
}

/* ── STATS ROW ──────────────────────────────────── */
#bsb-stats-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.bsb-stat {
  flex: 1;
  min-width: 100px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  border: 1.5px solid #e0cca0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bsb-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
}
.bsb-stat label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  font-weight: 700;
}
.bsb-stat.pend span { color: var(--pending); }
.bsb-stat.appr span { color: var(--approved); }
.bsb-stat.rej  span { color: var(--rejected); }

/* ── FILTER BAR ─────────────────────────────────── */
#bsb-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bsb-filter {
  padding: 7px 16px;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}
.bsb-filter.active, .bsb-filter:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
#bsb_search {
  padding: 7px 13px;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  font-size: 0.85rem;
  min-width: 200px;
  outline: none;
}
#bsb_search:focus { border-color: var(--saffron); }

/* ── BULK BAR ───────────────────────────────────── */
#bsb-bulk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.bsb-bulk-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}
.bsb-bulk-btn.grn { background: var(--approved); }
.bsb-bulk-btn.org { background: #e65100; }
.bsb-bulk-btn.red { background: var(--error); }
#bsb_sel_count { color: #555; font-size: 0.8rem; }

/* ── ADMIN TABLE ────────────────────────────────── */
#bsb-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #e0cca0;
}
#bsb-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#bsb-admin-table th {
  background: #ff6b00;
  color: #fff;
  padding: 10px 9px;
  text-align: left;
  white-space: nowrap;
  font-weight: 700;
}
#bsb-admin-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #f5e8d0;
  word-break: break-word;
  vertical-align: top;
  max-width: 160px;
}
#bsb-admin-table tr:nth-child(even) { background: #fffaf3; }
#bsb-admin-table tr:hover { background: #fff5e5; }

.bsb-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bsb-badge.pending  { background: #fff3e0; color: #e65100; }
.bsb-badge.approved { background: #e8f5e9; color: #2e7d32; }
.bsb-badge.rejected { background: #fce4ec; color: #b71c1c; }

.bsb-row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.bsb-act {
  padding: 4px 10px;
  border: none;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}
.bsb-act.appr { background: #2e7d32; }
.bsb-act.edit { background: #e65100; }
.bsb-act.del  { background: #c62828; }

/* Inline edit row */
.bsb-edit-row td { background: #fff8e1 !important; padding: 6px 9px; }
.bsb-edit-row input, .bsb-edit-row select {
  padding: 5px 7px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}
.bsb-save-btn {
  background: var(--approved); color: #fff; border: none;
  border-radius: 5px; padding: 5px 12px; font-size: 0.8rem;
  font-weight: 700; cursor: pointer;
}
.bsb-cancel-btn {
  background: #888; color: #fff; border: none;
  border-radius: 5px; padding: 5px 12px; font-size: 0.8rem;
  font-weight: 700; cursor: pointer;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 480px) {
  #bsb-form-card { padding: 20px 16px; margin: 0 8px; }
  .bsb-row2 { grid-template-columns: 1fr; }
  #bsb-header h1 { font-size: 1.15rem; }
  .bsb-admin-topbar { flex-direction: column; align-items: flex-start; }
}
