/* ===================================
   MY BOOKINGS PAGE STYLES - PREMIUM STARTUP LOOK
   =================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #10B981 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.bookings-section {
    padding: var(--spacing-3xl) 0;
    background: #f1f5f9;
    min-height: 80vh;
}

/* Page Header Enhancement */
.page-header {
    background: white;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.page-title {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Tabs */
.booking-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    background: white;
    padding: 0.5rem;
    border-radius: 99px;
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: var(--gray-900);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Booking Cards */
.bookings-container {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    flex-direction: column;
    gap: 2rem;
}

.bookings-container.active {
    display: flex;
    animation: slideUp 0.5s ease-out;
}

.booking-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.booking-card.ongoing {
    border-left: 5px solid #0EA5E9;
}

.booking-card.upcoming {
    border-left: 5px solid #F59E0B;
}

.booking-card.history {
    border-left: 5px solid #10B981;
}

/* Card Header */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--gray-200);
}

.service-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s;
}

.booking-card:hover .service-icon {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.booking-id {
    font-family: monospace;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-ongoing {
    background: #e0f2fe;
    color: #0284c7;
}

.status-scheduled {
    background: #fef3c7;
    color: #d97706;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Details Grid */
.booking-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
}

.detail-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    display: block;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Tracker Enhancement */
.tracker-container {
    margin: 2.5rem 0;
    position: relative;
    padding: 0 1rem;
}

.track-step .dot {
    width: 32px;
    height: 32px;
    border: 4px solid #e2e8f0;
    box-shadow: 0 0 0 4px white;
    z-index: 2;
}

.track-step.completed .dot {
    background: #10B981;
    border-color: #10B981;
}

.track-step.active .dot {
    background: white;
    border-color: #0EA5E9;
    animation: pulse-ring 2s infinite;
}

.track-step .line {
    top: 14px;
    height: 4px;
    border-radius: 2px;
}

/* Buttons */
.booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 2rem auto;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .booking-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tracker-container {
        display: none;
    }

    .booking-header {
        flex-direction: column;
        gap: 1rem;
    }

    .status-badge {
        align-self: flex-start;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions button {
        width: 100%;
    }

    .booking-tabs {
        width: 100%;
        left: 0;
        transform: none;
        padding: 0.25rem;
        border-radius: 1rem;
    }

    .tab-btn {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
        text-align: center;
    }
}