/* pages.css - shared styles for the booking, my bookings and admin pages.
   Load AFTER style.css. Uses the same colours as the rest of the site. */

.page-main { background: #FFF9F2; min-height: 100vh; padding: 30px 24px 70px; font-family: 'Poppins', sans-serif; color: #3B3028; }
.page-wrap { max-width: 1000px; margin: 0 auto; }
.page-heading { text-align: center; margin-bottom: 28px; }
.page-tag { display: inline-block; background: #FFE0CF; color: #8B5E3C; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 6px 14px; border-radius: 20px; margin-bottom: 12px; }
.page-heading h1 { font-size: 34px; margin-bottom: 8px; }
.page-heading p { color: #6b5d52; }

.status-message { min-height: 24px; margin: 14px 0; text-align: center; font-weight: 500; }
.status-message.error { color: #B3261E; }
.status-message.success { color: #1E7B3A; }

.day-title { font-size: 20px; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #F1E9E1; }
.session-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.session-card, .panel { background: #FFFFFF; border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(59, 48, 40, .08); }
.session-card h3 { font-size: 22px; margin-bottom: 4px; }
.places { font-size: 14px; color: #6b5d52; margin-bottom: 12px; }
.places.low { color: #B3261E; font-weight: 600; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; background: #F1E9E1; color: #8B5E3C; margin-bottom: 10px; }
.badge.booked { background: #DFF3E4; color: #1E7B3A; }

.booking-row { display: flex; gap: 10px; align-items: center; }
.booking-row select, .field input, .field select, .table-input { padding: 9px 10px; border: 1px solid #D9B99B; border-radius: 10px; font: inherit; background: #fff; }
.btn-main { background: #8B5E3C; color: #fff; border: 0; border-radius: 25px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-main:hover { background: #6F472D; }
.btn-main:disabled { background: #D9B99B; cursor: not-allowed; }
.btn-small { background: #F1E9E1; color: #3B3028; border: 0; border-radius: 16px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-small:hover { background: #FFE0CF; }
.btn-danger { background: #FDE7E5; color: #B3261E; }
.btn-danger:hover { background: #F9CFCB; }
.btn-small:disabled { opacity: .5; cursor: not-allowed; }

.panel { margin-bottom: 26px; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; background: #F1E9E1; padding: 10px; }
table.data td { padding: 9px 10px; border-bottom: 1px solid #F1E9E1; vertical-align: middle; }
table.data td.actions { white-space: nowrap; }
table.data td.actions button { margin-right: 6px; }
.empty { text-align: center; color: #6b5d52; padding: 24px; }

@media (max-width: 600px) {
  .page-main { padding: 20px 14px 50px; }
  .page-heading h1 { font-size: 26px; }
}


/* Account icon with login indicator */

.account-btn {
    position: relative;
}

.login-status-dot {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;

    width: 11px;
    height: 11px;

    background-color: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
}

/* Show only when logged in */
.login-status-dot.active {
    display: block;
}

/* ---------- choosing a cat when booking ---------- */
.cat-banner { display: flex; align-items: center; gap: 14px; background: #FFFFFF; border-radius: 16px; padding: 12px 16px; margin: 0 auto 10px; max-width: 700px; box-shadow: 0 4px 14px rgba(59, 48, 40, .08); }
.cat-banner[hidden] { display: none; }
.cat-banner img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cat-banner p { flex: 1; font-size: 14px; }
.cat-banner a { color: #8B5E3C; font-weight: 600; font-size: 13px; white-space: nowrap; }
.cat-select { width: 100%; margin-bottom: 10px; padding: 9px 10px; border: 1px solid #D9B99B; border-radius: 10px; font: inherit; background: #fff; }
.cat-note { font-size: 13px; color: #B3261E; margin-bottom: 8px; }
.cat-thumb { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }
