/* Bus Booking Dashboard Styles */
.wbtm-my-account-dashboard {
    width: 130%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dashboard Header */
.wbtm-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.wbtm-dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 10px;
}

.wbtm-dashboard-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Dashboard Stats */
.wbtm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wbtm-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wbtm-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.wbtm-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 10px;
    line-height: 1;
}

.wbtm-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search and Filters */
.wbtm-dashboard-filters {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.wbtm-search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wbtm-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wbtm-search-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wbtm-search-select {
    min-width: 150px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.wbtm-search-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#wbtm-search-bookings,
#wbtm-search-date {
    flex: 1;
    min-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#wbtm-search-bookings:focus,
#wbtm-search-date:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.wbtm-search-btn,
.wbtm-reset-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wbtm-search-btn {
    background: #6366f1;
    color: white;
}

.wbtm-search-btn:hover {
    background: #5855eb;
    transform: translateY(-1px);
}

.wbtm-reset-btn {
    background: #6b7280;
    color: white;
}

.wbtm-reset-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Bookings Container */
.wbtm-bookings-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wbtm-bookings-header {
    display: grid;
    grid-template-columns: 120px 1fr 100px 120px 120px 150px;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.wbtm-header-cell {
    padding: 20px 15px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.wbtm-header-cell:last-child {
    border-right: none;
}

/* Booking Items */
.wbtm-booking-item {
    display: grid;
    grid-template-columns: 120px 1fr 100px 120px 120px 150px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.3s ease;
    align-items: center;
}

.wbtm-booking-item:hover {
    background: #f9fafb;
}

.wbtm-booking-cell {
    padding: 20px 15px;
    text-align: center;
    border-right: 1px solid #f3f4f6;
}

.wbtm-booking-cell:last-child {
    border-right: none;
}

/* Order Info */
.wbtm-order-info {
    text-align: left;
}

.wbtm-order-number {
    font-weight: 700;
    color: #6366f1;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.wbtm-order-date {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Event Details */
.wbtm-event-details {
    text-align: left;
    padding: 15px !important;
}

.wbtm-bus-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wbtm-services-badge {
    display: inline-flex;
    align-items: center;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    justify-content: center;
    font-size: 0.75rem;
    cursor: help;
}

.wbtm-services-badge i {
    margin: 0;
}

.wbtm-journey-info {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #6b7280;
}

.wbtm-journey-date {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Inline journey details */
.wbtm-journey-details {
    display: flex;
    align-items: center;
   
    flex-wrap: wrap;
    margin-top: 5px;
}

.wbtm-journey-details .wbtm-journey-info {
    margin-bottom: 0;
    white-space: nowrap;
    position: relative;
}

.wbtm-journey-details .wbtm-journey-info i {
    margin-right: 4px;
    width: 12px;
    text-align: center;
}

/* Add separator between journey info items */
.wbtm-journey-details .wbtm-journey-info:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -10px;
    color: #d1d5db;
    font-weight: bold;
}

/* Tickets */
.wbtm-ticket-count {
    font-weight: 700;
    color: #111827;
    font-size: 1.2rem;
}

/* Price */
.wbtm-price {
    font-weight: 700;
    color: #059669;
    font-size: 1.1rem;
}

/* Status */
.wbtm-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbtm-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.wbtm-status.processing {
    background: #fef3c7;
    color: #92400e;
}

.wbtm-status.on-hold {
    background: #fee2e2;
    color: #991b1b;
}

/* Actions */
.wbtm-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.wbtm-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wbtm-btn-primary {
    background: #3b82f6;
    color: white;
}

.wbtm-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.wbtm-btn-success {
    background: #10b981;
    color: white;
}

.wbtm-btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.wbtm-btn-disabled {
    background: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    border: 1px solid #6c757d !important;
}

.wbtm-btn-disabled:hover {
    background: #6c757d !important;
    transform: none !important;
}

/* PDF Disabled State */
.wbtm-pdf-disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wbtm-pro-required-text {
    font-size: 11px;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.wbtm-btn-danger {
    background: #ef4444;
    color: white;
}

.wbtm-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Loading State */
.wbtm-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.1rem;
}

.wbtm-loading i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Empty State */
.wbtm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.wbtm-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #d1d5db;
}

.wbtm-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #374151;
}

/* Modal Styles */
.wbtm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wbtm-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wbtm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.wbtm-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #111827;
}

.wbtm-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wbtm-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.wbtm-modal-body {
    padding: 30px;
}

/* Booking Details in Modal */
.wbtm-booking-details {
    display: grid;
    gap: 30px;
}

.wbtm-detail-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.wbtm-detail-section h4 {
    margin: 0 0 15px 0;
    color: #111827;
    font-size: 1.2rem;
    font-weight: 600;
}

.wbtm-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.wbtm-detail-item {
    display: flex;
    flex-direction: column;
}

.wbtm-detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.wbtm-detail-value {
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
}

/* Attendee List */
.wbtm-attendee-list {
    display: grid;
    gap: 15px;
}

.wbtm-attendee-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.wbtm-attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wbtm-seat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6366f1;
}

.wbtm-attendee-actions {
    display: flex;
    gap: 8px;
}

.wbtm-attendee-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

/* Extra Services */
.wbtm-extra-services {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.wbtm-extra-services h5 {
    margin: 0 0 10px 0;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
}

.wbtm-services-list {
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px;
}

.wbtm-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.wbtm-service-item:last-child {
    border-bottom: none;
}

.wbtm-service-name {
    font-weight: 500;
    color: #111827;
}

.wbtm-service-details {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pagination */
.wbtm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
}

.wbtm-pagination button {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wbtm-pagination button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.wbtm-pagination button.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.wbtm-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Styles */
.wbtm-form-group {
    margin-bottom: 20px;
}

.wbtm-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.wbtm-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wbtm-form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.wbtm-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.wbtm-btn-secondary {
    background: #6b7280;
    color: white;
}

.wbtm-btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Error States */
.wbtm-error-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.wbtm-error-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ef4444;
}

.wbtm-error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #374151;
}

.wbtm-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* Success States */
.wbtm-success {
    background: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wbtm-my-account-dashboard {
        padding: 15px;
    }
    
    .wbtm-dashboard-header h2 {
        font-size: 2rem;
    }
    
    .wbtm-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .wbtm-search-container {
        gap: 10px;
    }
    
    .wbtm-search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .wbtm-search-select,
    #wbtm-search-bookings,
    #wbtm-search-date {
        min-width: auto;
        width: 100%;
    }
    
    .wbtm-search-buttons {
        justify-content: center;
    }
    
    .wbtm-bookings-header,
    .wbtm-booking-item {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .wbtm-header-cell,
    .wbtm-booking-cell {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 15px;
    }
    
    .wbtm-booking-cell:last-child {
        border-bottom: none;
    }
    
    .wbtm-actions {
        justify-content: flex-start;
    }
    
    .wbtm-modal {
        padding: 10px;
    }
    
    .wbtm-modal-body {
        padding: 20px;
    }
    
    .wbtm-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .wbtm-attendee-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wbtm-attendee-info {
        grid-template-columns: 1fr;
    }
    
    /* Stack journey details vertically on mobile */
    .wbtm-journey-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .wbtm-journey-details .wbtm-journey-info {
        margin-bottom: 3px;
    }
    
    /* Remove separators on mobile when stacked */
    .wbtm-journey-details .wbtm-journey-info::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .wbtm-stat-card {
        padding: 20px 15px;
    }
    
    .wbtm-stat-number {
        font-size: 2.5rem;
    }
    
    .wbtm-dashboard-filters {
        padding: 15px;
    }
    
    .wbtm-search-btn,
    .wbtm-reset-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
