/* ============================================================
   Booking Module — ManageAppointment styles
   Prefix: bp-
   ============================================================ */

.bp-page {
    min-height: 100vh;
    background: #f8f9fa;
}

.bp-card {
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    overflow: hidden;
}

.bp-fade {
    animation: bpFade .25s ease;
}

@keyframes bpFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Info rows */
.bp-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.bp-info-row .mud-icon-root {
    color: var(--mud-palette-primary);
    font-size: 1.2rem;
}

/* Status badges */
.bp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.bp-status-pending { background: #fef3c7; color: #92400e; }
.bp-status-cancelled { background: #fee2e2; color: #991b1b; }
.bp-status-completed { background: #d1fae5; color: #065f46; }

/* Day strip (reschedule picker) */
.bp-day-strip {
    display: flex;
    gap: 10px;
    padding: 0 32px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bp-day-strip::-webkit-scrollbar { height: 0; }

.bp-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 72px;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all .2s ease;
    background: white;
    user-select: none;
}

.bp-day:hover:not(.bp-day-disabled) {
    border-color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), .04);
}

.bp-day-active {
    border-color: var(--mud-palette-primary) !important;
    background: var(--mud-palette-primary) !important;
    color: white !important;
}

.bp-day-active .bp-day-name,
.bp-day-active .bp-day-num { color: white !important; }

.bp-day-disabled {
    opacity: .35;
    cursor: not-allowed;
    background: #f8f9fa;
}

.bp-day-name {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #6c757d;
}

.bp-day-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 2px;
}

.bp-day-today { position: relative; }

.bp-day-today::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
}

.bp-day-active.bp-day-today::after { background: white; }

/* Time slots */
.bp-slots {
    display: flex;
    gap: 10px;
    padding: 0 32px 24px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.bp-slot {
    padding: 8px 20px;
    border: 1.5px solid #dee2e6;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all .15s ease;
    background: white;
    white-space: nowrap;
    user-select: none;
}

.bp-slot:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.bp-slot-active {
    border-color: var(--mud-palette-primary) !important;
    background: var(--mud-palette-primary) !important;
    color: white !important;
}

/* Section titles */
.bp-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    padding: 20px 32px 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .bp-day-strip,
    .bp-slots { padding-left: 20px; padding-right: 20px; }
    .bp-section-title { padding-left: 20px; padding-right: 20px; }
}
