/**
 * Booking Details Inline Styles
 */

/* Inline Loading */
.inline-loading {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.inline-error {
    text-align: center;
    padding: 60px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-spinner {
    text-align: center;
    color: #333;
}

.loading-spinner p {
    margin: 20px 0 0 0;
    font-size: 16px;
    color: #666;
}

.inline-error .error-content h3 {
    margin: 0 0 15px 0;
    color: #721c24;
}

.inline-error .error-content p {
    margin: 0 0 20px 0;
    color: #721c24;
}

.inline-error .button.button {
    background: #cd5928;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.inline-error .button.button:hover {
    background: #8c181b;
    color: white;
    text-decoration: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 124, 186, 0.3);
    border-top: 4px solid #cd5928;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Button Enhancements */
.view-details-btn {
    background: #cd5928 !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.view-details-btn:hover {
    background: #8c181b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* Back Button Styles */
.back-button {
    background: #cd5928 !important;
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.back-button:hover {
    background: #8c181b !important;
    transform: translateX(-2px) !important;
    color: white !important;
    text-decoration: none !important;
}

.back-arrow {
    font-size: 18px;
    font-weight: bold;
}

/* Animation for content transitions */
.my-bookings-container {
    transition: all 0.3s ease;
}

.booking-details-page {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.back-button:focus,
.view-details-btn:focus,
.cancel-booking-btn:focus,
.modify-booking-btn:focus,
.print-booking-btn:focus {
    outline: 2px solid #cd5928;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .back-button {
        border: 2px solid #cd5928 !important;
    }
    
    .booking-details-page {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading-overlay,
    .error-modal,
    .my-bookings-container,
    .booking-details-page {
        transition: none;
    }
    
    .spinner {
        animation: none;
    }
    
    .booking-details-page {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .back-button,
    .booking-actions {
        display: none !important;
    }
    
    .booking-details-page {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .back-button {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .back-arrow {
        font-size: 16px;
    }
    
    .view-details-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Loading state for buttons */
.view-details-btn:disabled,
.cancel-booking-btn:disabled,
.modify-booking-btn:disabled,
.print-booking-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Ensure proper spacing in WooCommerce account pages */
.woocommerce-account .my-bookings-container {
    margin-top: 20px;
}

/* Better visual hierarchy */
.booking-details-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Enhanced button states */
.back-button:active {
    transform: translateX(-1px) scale(0.98);
}

.view-details-btn:active {
    transform: translateY(0) scale(0.98);
} 


.my-bookings-container {
    margin: 0 auto;
}

/* Search Criteria Filter Styles */
.search-criteria-filter {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-criteria-filter h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.filter-form {
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    height: 40px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
    background-color: #fff !important;
    padding: 20px !important;
    height: 40px !important;
    line-height: 0px !important;
}

.select2 .select2-selection--single {
    border: 1px solid rgba(0,0,0,0.1) !important;
}

.filter-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-button {
    background: #cd5928 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.filter-button:hover {
    background: #8c181b !important;
}

.reset-button {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.reset-button:hover {
    background: #5a6268 !important;
}

.current-criteria {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.current-criteria h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.criteria-display {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.criteria-item {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

.no-bookings {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bookings-list {
    margin-top: 20px;
}

.booking-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.booking-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.booking-header h3 {
    margin: 0;
    color: #333;
}

.booking-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.booking-status.cancelled {
    background: #f8d7da;
    color: #8c181b;
}

.booking-status.completed {
    background: #cce5ff;
    color: #cd5928;
}

.booking-details {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.booking-info p {
    margin: 5px 0;
    color: #666;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-actions .button {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.cancel-booking {
    background: #cd5928 !important;
    color: white !important;
}

.cancel-booking:hover {
    background: #CD5928 !important;
}



@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .criteria-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .booking-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.prev-page, .next-page {
    color: #cd5928;
}

.page-link {
    color: #cd5928;
}

.page-link::hover, .prev-page::hover, .next-page::hover {
    color: #8c181b;
}

/* WooCommerce Integration Styles */
.search-criteria-filter {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-criteria-filter h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.filter-form {
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.filter-group input[type="date"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.knsl-btn {
    background: #cd5928;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.knsl-btn:hover {
    background: #8c181b;
}



.current-criteria {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.current-criteria h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.criteria-display {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.criteria-item {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.criteria-item strong {
    color: #495057;
}

/* Loading indicator */
.bookings-loading {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.bookings-loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Bookings list */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.booking-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.booking-header h5 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.booking-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.booking-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.booking-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.booking-info {
    flex: 1;
}

.booking-info p {
    margin: 8px 0;
    color: #555;
}

.booking-info strong {
    color: #333;
}

.booking-actions {
    display: flex;
    gap: 10px;
}

.booking-actions .button {
    background: #cd5928;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.booking-actions .button:hover {
    background: #8c181b;
    color: white;
}

/* No bookings message */
.no-bookings {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-bookings p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.no-bookings .button {
    background: #cd5928;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.no-bookings .button:hover {
    background: #8c181b;
    color: white;
}

/* Pagination */
.bookings-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #cd5928;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-link:active {
    color: #fff;
}

.page-link:hover {
    background: #cd5928;
    color: white;
    border-color: #cd5928;
}

.page-link.current {
    background: #cd5928;
    color: white;
    border-color: #cd5928;
}

.page-link.prev-page,
.page-link.next-page {
    font-weight: 600;
}

.pagination-dots {
    color: #6c757d;
    padding: 8px 4px;
}

/* Toastr Customization */
#toast-container > .toast {
    background-image: none !important;
}

#toast-container > .toast:before {
    position: relative;
    font-family: "dashicons";
    font-size: 24px;
    line-height: 18px;
    float: left;
    margin-right: 10px;
    color: inherit;
}

#toast-container > .toast.toast-success:before {
    content: "\f147";
}

#toast-container > .toast.toast-error:before {
    content: "\f158";
}

#toast-container > .toast.toast-info:before {
    content: "\f348";
}

#toast-container > .toast.toast-warning:before {
    content: "\f460";
}

/* SweetAlert2 Customization */
.swal2-popup {
    font-family: inherit;
    border-radius: 8px;
}

.swal2-title {
    color: #333;
    font-weight: 600;
}

.swal2-confirm {
    background: #007cba !important;
    border-color: #007cba !important;
}

.swal2-confirm:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
}

.swal2-cancel {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.swal2-cancel:hover {
    background: #545b62 !important;
    border-color: #545b62 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input[type="date"] {
        width: 100%;
    }
    
    .criteria-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .booking-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-actions {
        justify-content: center;
    }
    
    .pagination-links {
        gap: 5px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .my-bookings-container {
        padding: 0px;
    }
    
    .search-criteria-filter {
        padding: 0px;
    }
    
    .booking-item {
        padding: 0px;
    }
    
    .booking-header h5 {
        font-size: 16px;
    }
    
    .pagination-links {
        gap: 3px;
    }
    
    .page-link {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 30px;
    }
}