/* --- SCOPED CSS FOR MY BOOKINGS PAGE --- */

/* Header Section */
.mb-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.mb-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 8px 0;
}

.mb-header-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* New Booking Button */
.mb-btn-new {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .mb-btn-new:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #1e293b;
    }

    .mb-btn-new svg {
        width: 16px;
        height: 16px;
        color: #64748b;
    }

/* Stats Cards Grid */
.mb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Base Card Style (REDUCED HEIGHT & PADDING) */
.mb-stat-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px; /* Reduced from 20px */
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.mb-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px; /* Reduced from 12px */
}

.mb-card-value {
    font-size: 24px; /* Reduced from 28px */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px; /* Reduced from 12px */
    line-height: 1;
}

.mb-card-subtext {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Icons (VERTICALLY CENTERED) */
.mb-card-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* This perfectly centers it vertically */
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

    .mb-card-icon svg {
        width: 20px;
        height: 20px;
    }

/* --- Specific Card Themes (90deg GRADIENTS) --- */

/* 1. Total Bookings (Purple) */
.mb-card-total {
    /* 90deg pulls the light color to the left, darker to the right */
    background: linear-gradient(90deg, #FAFAFF 0%, #E6E4FF 100%);
    border-bottom: 3px solid #4F46E5;
}

    .mb-card-total .mb-card-icon svg {
        stroke: #4F46E5;
    }

    .mb-card-total .mb-card-subtext {
        color: #16A34A;
    }

/* 2. Upcoming (Cyan) */
.mb-card-upcoming {
    background: linear-gradient(90deg, #F4FFFF 0%, #D6FBF9 100%);
    border-bottom: 3px solid #0D9488;
}

    .mb-card-upcoming .mb-card-icon svg {
        stroke: #0D9488;
    }

    .mb-card-upcoming .mb-card-subtext {
        color: #16A34A;
    }

/* 3. Completed (Green) */
.mb-card-completed {
    background: linear-gradient(90deg, #F4FDF6 0%, #D3FCE3 100%);
    border-bottom: 3px solid #16A34A;
}

    .mb-card-completed .mb-card-icon svg {
        stroke: #16A34A;
    }

    .mb-card-completed .mb-card-subtext {
        color: #16A34A;
    }

/* 4. Cancelled (Red) */
.mb-card-cancelled {
    background: linear-gradient(90deg, #FFF5F5 0%, #FEE0E0 100%);
    border-bottom: 3px solid #DC2626;
}

    .mb-card-cancelled .mb-card-icon svg {
        stroke: #DC2626;
    }

    .mb-card-cancelled .mb-card-subtext {
        color: #DC2626;
    }

/* Subtext Icon Specifics */
.mb-trend-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mb-header-row {
        flex-direction: column;
        gap: 16px;
    }

    .mb-stats-grid {
        grid-template-columns: 1fr;
    }
}
/* --- SCOPED CSS FOR BOOKINGS LIST --- */

.bk-wrapper {
    font-family: 'Inter', sans-serif;
    margin-bottom: 40px;
}

/* --- Tabs --- */
.bk-tabs-container {
    display: inline-flex;
    background-color: #F1F5F9;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.bk-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .bk-tab:hover {
        color: #1E293B;
    }

    .bk-tab.active {
        background-color: #FFFFFF;
        color: #0F172A;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }

/* --- Booking Cards --- */
.bk-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bk-card {
    display: flex;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    gap: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Card Image */
.bk-image-wrap {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F1F5F9;
}

    .bk-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Card Content Area */
.bk-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bk-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .bk-title-group h2 {
        font-size: 18px;
        font-weight: 700;
        color: #1E293B;
        margin: 0;
    }

/* Badges */
.bk-badge {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    background-color: #D1FAE5;
    color: #059669;
}

/* Details Grid */
.bk-details-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.bk-detail-box {
    background-color: #F8F8F8;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .bk-detail-box.box-purple {
        background: linear-gradient(90deg, #EEF2FF 0%, #C7D2FE 100%);
    }

.bk-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
}

.bk-value {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

    .bk-value.text-green {
        color: #16A34A;
    }

    .bk-value.text-purple {
        color: #4338CA;
    }

/* Action Buttons */
.bk-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
}

.bk-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s;
}

.bk-btn-default {
    border: 1px solid #CBD5E1;
    color: #475569;
}

    .bk-btn-default:hover {
        background-color: #F8FAFC;
        border-color: #94A3B8;
        color: #1E293B;
    }

.bk-btn-danger {
    border: 1px solid #EF4444;
    color: #DC2626;
}

    .bk-btn-danger:hover {
        background-color: #FEF2F2;
    }

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .bk-details-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 rows of 3 on medium screens */
    }
}

@media (max-width: 768px) {
    .bk-card {
        flex-direction: column;
    }

    .bk-image-wrap {
        width: 100%;
        height: 200px; /* Taller on mobile */
    }

    .bk-details-grid {
        grid-template-columns: repeat(2, 1fr); /* 3 rows of 2 on small screens */
    }

    .bk-actions {
        flex-wrap: wrap;
    }

    .bk-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bk-details-grid {
        grid-template-columns: 1fr; /* Stack completely on very small screens */
    }
}