/* ======================================================
   Sarekam CSS — my-bookings.css
   Extracted from index.html | Phase 1 Refactor
   DO NOT add styles from other sections to this file.
   ====================================================== */

.mb-view-toggle {
    display: flex; gap: 10px; margin-bottom: 14px;
}
.mb-toggle-btn {
    flex: 1; padding: 10px 0; border: 1.5px solid #e0e0e0;
    border-radius: 24px; background: #fff; color: #888;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all 0.2s;
}
.mb-toggle-btn.active {
    background: #1c1c1c; color: #fff; border-color: #1c1c1c;
}
.mb-status-filters {
    display: flex; gap: 8px; margin-bottom: 20px;
    overflow-x: auto; padding-bottom: 4px;
}
.mb-status-filters::-webkit-scrollbar { display: none; }
.mb-status-pill {
    padding: 7px 18px; border: 1.5px solid #e0e0e0;
    border-radius: 20px; background: #fff; color: #888;
    font-size: 12px; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: all 0.2s; flex-shrink: 0;
}
.mb-status-pill.active {
    background: #1c1c1c; color: #fff; border-color: #1c1c1c;
}

/* Booking list item */
.mb-booking-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 0; border-bottom: 1px solid #f0f0f0;
}
.mb-booking-item:last-child { border-bottom: none; }
.mb-booking-thumb {
    width: 56px; height: 56px; border-radius: 12px;
    object-fit: cover; background: #f3f4f6; flex-shrink: 0;
}
.mb-booking-thumb-placeholder {
    width: 56px; height: 56px; border-radius: 12px;
    background: #f3f4f6; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.mb-booking-thumb-placeholder i { font-size: 1.3rem; color: #ccc; }
.mb-booking-info { flex: 1; min-width: 0; }
.mb-booking-title {
    font-size: 15px; font-weight: 700; color: #1c1c1c;
    margin-bottom: 4px; line-height: 1.3;
}
.mb-booking-meta {
    font-size: 12px; color: #888; margin-bottom: 6px;
}
.mb-booking-meta .mb-status-badge {
    font-weight: 700;
}
.mb-status-pending   { color: #e65100; }
.mb-status-completed { color: #2e7d32; }
.mb-status-cancelled { color: #c62828; }
.mb-status-booked    { color: #7c3aed; font-weight: 700; }

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   BOOKING DETAIL OVERLAY
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#bookingDetailOverlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: #f0eef8;
    z-index: 9200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#bookingDetailOverlay.open { transform: translateX(0); }

/* Top header bar */
.bd-header {
    background: #fff;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #ede9fe;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.bd-back-btn {
    background: none; border: none;
    font-size: 18px; cursor: pointer;
    color: #1c1c1c; padding: 4px;
    flex-shrink: 0; margin-top: 2px;
}
.bd-header-text { flex: 1; }
.bd-header-title {
    font-size: 16px; font-weight: 800;
    color: #1c1c1c; margin: 0 0 4px;
    line-height: 1.3;
}
.bd-header-date {
    font-size: 12px; color: #888;
    background: #f5f5f5;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Body content */
.bd-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Status card */
.bd-status-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 6px rgba(124,58,237,0.07);
}
.bd-status-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: #ede9fe;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bd-status-icon svg { width: 28px; height: 28px; }
.bd-status-label {
    font-size: 26px;
    font-weight: 800;
    color: #1c1c1c;
    letter-spacing: -0.3px;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Service Card (below Booked status) Ã¢â€â‚¬Ã¢â€â‚¬ */
.bd-service-card {
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1.5px solid #ede9fe;
    box-shadow: 0 1px 6px rgba(124,58,237,0.07);
}
.bd-svc-thumb {
    width: 100px;
    min-width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg,#f5f3ff,#ede9fe);
    display: flex; align-items: center; justify-content: center;
    color: #7c3aed; font-size: 2rem;
}
.bd-svc-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.bd-svc-info {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    overflow: hidden;
}
.bd-svc-name {
    font-size: 14px;
    font-weight: 800;
    color: #1c1c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 2px;
}
.bd-svc-datetime {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}
.bd-svc-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    align-self: flex-start;
    font-family: inherit;
}
.bd-svc-detail-btn:hover { background: #6d28d9; }

/* Section cards */
.bd-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.bd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #7c3aed;
    margin: 0 0 14px;
}

/* Vendor card Ã¢â‚¬â€ image 2 style */
.bd-vendor-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid #d4d0e8;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}
.bd-vendor-photo {
    width: 110px;
    min-width: 110px;
    height: 130px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #7c3aed;
    overflow: hidden;
    background: #ede9fe;
}
.bd-vendor-photo img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
}
.bd-vendor-info {
    flex: 1;
    padding: 14px 14px 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}
.bd-vendor-name  { font-size: 15px; font-weight: 800; color: #1c1c1c; margin: 0 0 2px; }
.bd-vendor-role  { font-size: 12px; color: #666; margin: 0 0 10px; }
.bd-vendor-count { font-size: 28px; font-weight: 900; color: #1c1c1c; margin: 0; line-height: 1; }
.bd-vendor-count-label { font-size: 11px; color: #999; font-weight: 500; margin-top: 2px; }

/* Vendor section assign button */
.bd-vendor-plus-btn {
    height: 30px; padding: 0 12px;
    background: #7c3aed; border: none;
    border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; line-height: 1;
    color: #fff; font-weight: 700; transition: all 0.2s;
}
.bd-vendor-plus-btn:hover { background: #6d28d9; transform: scale(1.04); }


/* ─── Vendor Picker Popup -> Slide-in Overlay ─── */
#vendorPickerOverlay {
    position: fixed;
    top: 0; right: 0;
    width: 420px; max-width: 100%; height: 100%;
    background: #f0eef8;
    z-index: 9500;
    display: flex; flex-direction: column;
    overflow-y: auto; overflow-x: hidden;
    box-shadow: -5px 0 25px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1);
}
#vendorPickerOverlay.open {
    transform: translateX(0);
}

.vendor-picker-sheet {
}

.vendor-picker-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.vendor-picker-title { font-size: 17px; font-weight: 800; color: #1c1c1c; margin: 0; }
.vendor-picker-grid  { display: flex; flex-direction: column; gap: 10px; }

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ MOBILE: top sheet + horizontal scroll Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 600px) {
    #vendorPickerOverlay {
        align-items: flex-start;
        justify-content: center;
    }
    .vendor-picker-sheet {
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 24px 24px;
        padding: 16px 0 20px;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1);
        max-height: 70vh;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    }
    #vendorPickerOverlay.open .vendor-picker-sheet {
        transform: translateY(0);
    }
    /* mobile header */
    .vendor-picker-header { padding: 0 16px; margin-bottom: 14px; }
    /* Vertical list on mobile */
    .vendor-picker-grid {
        flex-direction: column;
        gap: 12px;
        padding: 4px 16px 12px;
    }
    .vp-card {
        flex-direction: row;
        border-radius: 14px;
    }
    .vp-photo {
        width: 80px; min-width: 80px; height: 90px;
    }
    .vp-info { padding: 10px 12px; }
    /* hide floating X on mobile - use header X instead */
    .vp-close-btn { display: none; }
    /* mobile close icon in header */
    .vp-header-close {
        width: 32px; height: 32px;
        border-radius: 50%; border: none;
        background: #f0eef8; color: #7c3aed;
        font-size: 15px; display: flex; align-items: center; justify-content: center;
        cursor: pointer;
    }
}
/* hide mobile-only close on desktop */
@media (min-width: 601px) {
    .vp-header-close { display: none; }
}

.vp-card {
    display: flex; align-items: stretch;
    border: 1.5px solid #d4d0e8; border-radius: 14px;
    overflow: hidden; background: #fff;
    cursor: pointer; transition: box-shadow 0.2s, transform 0.15s;
}
.vp-card:hover { box-shadow: 0 4px 16px rgba(124,58,237,0.12); transform: translateY(-1px); }
.vp-photo {
    width: 80px; min-width: 80px; height: 90px;
    overflow: hidden; background: #ede9fe;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #7c3aed;
}
.vp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vp-info { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.vp-name  { font-size: 13px; font-weight: 800; color: #1c1c1c; margin: 0; }
.vp-role  { font-size: 11px; color: #888; margin: 0 0 4px; }
.vp-count { font-size: 20px; font-weight: 900; color: #1c1c1c; margin: 0; line-height: 1; }
.vp-count-label { font-size: 10px; color: #aaa; margin: 0; }

/* Vendor Profile Ã¢â‚¬â€ right-side panel (same style as Booking Detail) */
#vendorProfileOverlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: #edeaf5;
    z-index: 9600;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1);
}
#vendorProfileOverlay.open { transform: translateX(0); }
.vpr-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 8px;
}
.vpr-topbar-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.8); border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #1c1c1c; cursor: pointer;
}
.vpr-body { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.vpr-id-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    display: flex; align-items: stretch; border: 1px solid #e0ddf0;
}
.vpr-id-photo {
    width: 120px; min-width: 120px; height: 140px;
    overflow: hidden; background: #ede9fe;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #7c3aed;
}
.vpr-id-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vpr-id-info { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.vpr-id-name  { font-size: 18px; font-weight: 800; color: #1c1c1c; margin: 0 0 2px; }
.vpr-id-role  { font-size: 13px; color: #666; margin: 0 0 10px; }
.vpr-id-count { font-size: 32px; font-weight: 900; color: #1c1c1c; line-height: 1; margin: 0; }
.vpr-id-count-label { font-size: 11px; color: #aaa; font-weight: 500; margin-top: 2px; }
.vpr-consult-card { background: #fff; border-radius: 16px; padding: 16px 18px; border: 1px solid #e0ddf0; }
.vpr-consult-title { font-size: 14px; font-weight: 800; color: #1c1c1c; margin: 0 0 14px; }
.vpr-consult-btns  { display: flex; gap: 16px; }
.vpr-consult-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; border: none; background: none; padding: 0;
}
.vpr-consult-icon {
    width: 50px; height: 50px; border-radius: 50%; background: #ede9fe;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #7c3aed;
}
.vpr-consult-label { font-size: 12px; color: #1c1c1c; font-weight: 600; }
.vpr-desc-card { background: #fff; border-radius: 16px; padding: 16px 18px; border: 1px solid #e0ddf0; }
.vpr-desc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vpr-desc-title  { font-size: 14px; font-weight: 800; color: #1c1c1c; margin: 0; }
.vpr-desc-toggle { background: none; border: none; font-size: 16px; color: #888; cursor: pointer; }
.vpr-desc-text   { font-size: 13px; color: #555; line-height: 1.6; margin: 0 0 8px; }
.vpr-show-more   { font-size: 12px; color: #7c3aed; font-weight: 700; cursor: pointer; background: none; border: none; padding: 0; }
.vpr-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 16px 32px; }
.vpr-joined-pill { background: #4a5568; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 20px; border-radius: 20px; }
.vpr-book-btn {
    width: 100%; background: #4a5568; color: #fff;
    font-size: 20px; font-weight: 700; border: none; border-radius: 14px;
    padding: 16px; cursor: pointer; transition: background 0.2s;
}
.vpr-book-btn:hover { background: #2d3748; }

.bd-vendor-add-btn {
    width: 36px; height: 36px;
    background: #fff; border: 1.5px solid #e0e0e0;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; color: #1c1c1c;
    transition: all 0.2s; flex-shrink: 0;
    margin-top: 10px; align-self: flex-start;
}
.bd-vendor-add-btn:hover { background: #f5f0ff; border-color: #7c3aed; color: #7c3aed; }
.bd-no-vendor {
    text-align: center; padding: 24px 16px;
    font-size: 13px; color: #bbb;
}

/* Booking details rows */
.bd-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.bd-detail-row:last-child { border-bottom: none; }
.bd-detail-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: #f0eef8;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bd-detail-icon i { font-size: 14px; color: #7c3aed; }
.bd-detail-text {
    flex: 1;
    font-size: 14px;
    color: #1c1c1c;
    font-weight: 500;
    padding-top: 6px;
    line-height: 1.4;
}

.mb-booking-desc {
    font-size: 12px; color: #666; margin-bottom: 8px; line-height: 1.4;
}
.mb-booking-desc a {
    color: #1c1c1c; font-weight: 700; text-decoration: underline;
    cursor: pointer;
}
.mb-book-again-btn {
    display: inline-block; padding: 6px 20px;
    border: 1.5px solid #e0e0e0; border-radius: 20px;
    background: #fff; color: #7c3aed; font-size: 12px;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.mb-book-again-btn:hover {
    background: #f5f0ff; border-color: #7c3aed;
}
.mb-ticket-id {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #9e9e9e;
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 3px 8px;
    margin-bottom: 8px;
    display: inline-block;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Empty state */
.mb-empty-state {
    text-align: center; padding: 50px 20px; color: #bbb;
}
.mb-empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.mb-empty-state p { font-size: 13px; line-height: 1.5; }

/* Category view card */
.mb-category-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; margin-bottom: 10px;
    background: #fafafa; border: 1px solid #f0f0f0;
    border-radius: 14px; cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}
.mb-category-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.mb-category-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: #ede9fe; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.mb-category-icon i { font-size: 1.2rem; color: #7c3aed; }
.mb-category-info { flex: 1; }
.mb-category-name { font-size: 14px; font-weight: 700; color: #1c1c1c; margin-bottom: 2px; }
.mb-category-count { font-size: 12px; color: #888; }
.mb-category-arrow { color: #ccc; font-size: 14px; }

