:root {
  --primary: #3B5BFD;
  --primary-dark: #2743d1;
  /* --text: #1f2430; */
  /* --text: #00BFFF; */
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f8fb;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);

	background-image:url('https://www.pindil.com/p7_colors/p7_red.png');
	background-size:cover;
	background-attachment:fixed;
	background-repeat:no-repeat;
	background-position:center;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card, .hero-card, .form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.hero-card { max-width: 520px; text-align: center; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.form-card { max-width: 420px; width: 100%; }

h1 { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }

label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.9em; }
label input[type=text], label input[type=email], label input[type=password],
label input[type=date], label input[type=time], label input[type=number],
label select, label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1em;
  font-weight: normal;
  font-family: inherit;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.checkbox-label input { width: auto; margin: 0; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: #eef0f5; color: var(--text); }
.btn-secondary:hover { background: #e2e5ee; text-decoration: none; }
.btn-danger { background: #fde8e8; color: var(--danger); }
.btn-danger:hover { background: #fbd5d5; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.85em; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; margin-bottom: 16px; font-weight: 600; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9em; }
.alert-error { background: #fde8e8; color: #991b1b; }
.alert-success { background: #e7f8ee; color: #166534; }

/* --- Top nav --- */
.topnav { background: #fff; border-bottom: 1px solid var(--border); }
.topnav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 1.1em; color: var(--text); }
.topnav-links a { margin-left: 20px; color: var(--text); font-weight: 600; font-size: 0.92em; }
.container { max-width: 1080px; margin: 0 auto; padding: 28px 24px; }
.page-header { margin-bottom: 20px;margin-top:5%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.link-row { display: flex; gap: 10px; }
.link-row input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }

.badge { display: inline-block; background: #eef0f5; color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: 0.75em; font-weight: 700; margin-left: 6px; }
.badge-muted { background: #f1f1f1; }
.badge-success { background: #e7f8ee; color: #166534; }

.booking-list, .quick-links, .event-type-list { list-style: none; padding: 0; margin: 0; }
.booking-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.booking-when { font-weight: 700; font-size: 0.85em; color: var(--muted); }
.booking-what { font-weight: 600; }
.zoom-link { font-size: 0.85em; }
.quick-links li { padding: 8px 0; }

.event-type-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.event-type-actions { display: flex; gap: 8px; }

.avail-table td { padding: 8px 10px; }
.avail-day { min-width: 160px; }
.override-form { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 20px; }
.override-form label { margin-bottom: 0; }
.override-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.override-table th, .override-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }

.filter-tabs { margin-top: 10px; }
.filter-tabs a { margin-right: 16px; color: var(--muted); font-weight: 700; padding-bottom: 6px; }
.filter-tabs a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

.bookings-table { width: 100%; border-collapse: collapse; }
.bookings-table th, .bookings-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* --- Public booking page --- */
.booking-page {
  display: flex;
  max-width: 960px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 560px;
}
.booking-sidebar { width: 280px; padding: 32px; border-right: 1px solid var(--border); background: #fbfbfd; }
.host-name { color: var(--muted); font-weight: 700; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.04em; }
.meta-list { list-style: none; padding: 0; margin-top: 20px; }
.meta-list li { margin-bottom: 10px; font-size: 0.92em; }
.booking-main { flex: 1; padding: 32px; }

.picker-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.picker-controls select { padding: 8px; border-radius: 8px; border: 1px solid var(--border); }
.month-nav { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.picker-grid { display: flex; gap: 28px; }
.calendar-grid { flex: 1; }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-weekdays span { font-size: 0.75em; color: var(--muted); font-weight: 700; padding: 6px 0; }
.cal-day { padding: 10px 0; border: none; background: none; border-radius: 8px; cursor: pointer; font-size: 0.9em; }
.cal-day:not(.empty):not(.disabled):hover { background: #eef0f5; }
.cal-day.selected { background: var(--primary); color: #fff; }
.cal-day.disabled { color: #ccc; cursor: default; }
.cal-day.empty { visibility: hidden; }

.time-slot-list { width: 220px; max-height: 400px; overflow-y: auto; }
.slot-buttons { display: flex; flex-direction: column; gap: 8px; }
.btn-slot { background: #fff; border: 1px solid var(--primary); color: var(--primary); border-radius: 8px; padding: 10px; font-weight: 700; cursor: pointer; }
.btn-slot:hover { background: var(--primary); color: #fff; }
.slot-spots { font-size: 0.72em; font-weight: 600; opacity: 0.75; }
.badge-type { background: #ede9fe; color: #5b21b6; }
.host-checklist { max-height: 180px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.host-checklist .checkbox-label { margin-bottom: 8px; }
.type-blurb { margin-top: -6px; }
.poll-option-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.poll-option-row input[type=datetime-local] { flex: 1; }
.poll-results-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.poll-results-table th, .poll-results-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.poll-bar-track { background: #eef0f5; border-radius: 6px; height: 8px; width: 100%; overflow: hidden; }
.poll-bar-fill { background: var(--primary); height: 100%; }
.vote-option-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }

.confirm-check { width: 56px; height: 56px; border-radius: 50%; background: #e7f8ee; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 1.6em; margin-bottom: 16px; }

@media (max-width: 700px) {
  .booking-page { flex-direction: column; }
  .booking-sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .picker-grid { flex-direction: column; }
  .time-slot-list { width: auto; }
}
