/* Marine World Booking Manager Styles */

/* Hide WordPress Admin Elements on Booking Manager Page */
.mwb-booking-manager-page #wpadminbar,
.mwb-booking-manager-page .elementor-editor-active .elementor-element-editable,
.mwb-booking-manager-page .elementor-editor-wrapper {
    display: none !important;
}

.mwb-booking-manager-page {
    margin-top: 0 !important;
}

.mwb-booking-manager-page body {
    margin-top: 0 !important;
}

/* Main Container */
#mwb-bookings-container {
    background: #ffffff;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    min-height: 100vh;
}

/* Header Section */
.mwb-bookings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mwb-bookings-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

/* Filters Section */
.mwb-booking-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.mwb-booking-filters input[type="text"],
.mwb-booking-filters input[type="date"],
.mwb-booking-filters select {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    min-width: 200px;
    transition: all 0.3s ease;
}

.mwb-booking-filters input[type="text"]:focus,
.mwb-booking-filters input[type="date"]:focus,
.mwb-booking-filters select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.mwb-booking-filters .button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mwb-booking-filters .button:hover {
    background: white;
    color: #667eea;
}

/* Table Wrapper */
.mwb-bookings-table-wrapper {
    padding: 30px;
    background: #f8f9fa;
}

/* Table Styles */
.mwb-bookings-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mwb-bookings-table thead {
    background: #f1f3f5;
}

.mwb-bookings-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.mwb-bookings-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 14px;
}

.mwb-bookings-table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.mwb-bookings-table tbody tr:last-child td {
    border-bottom: none;
}

/* Customer Info */
.mwb-customer-info {
    line-height: 1.5;
}

.mwb-customer-info strong {
    color: #212529;
    font-size: 14px;
}

.mwb-customer-info small {
    color: #6c757d;
    font-size: 12px;
}

/* Tickets Info */
.mwb-tickets-info {
    line-height: 1.6;
    font-size: 13px;
}

.mwb-tickets-info strong {
    color: #212529;
}

/* Badges */
.mwb-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mwb-badge-success {
    background: #d4edda;
    color: #155724;
}

.mwb-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.mwb-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.mwb-badge-secondary {
    background: #e9ecef;
    color: #495057;
}

/* Action Buttons */
.mwb-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mwb-actions .button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mwb-actions .button-primary {
    background: #667eea;
    color: white;
}

.mwb-actions .button-primary:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.mwb-actions .button-secondary {
    background: #6c757d;
    color: white;
}

.mwb-actions .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mwb-view-details {
    background: #17a2b8 !important;
    color: white !important;
}

.mwb-view-details:hover {
    background: #138496 !important;
}

/* Footer Section */
.mwb-bookings-footer {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e9ecef;
}

/* Pagination */
.mwb-pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mwb-page-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.mwb-page-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.mwb-page-current {
    padding: 8px 12px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

.mwb-page-dots {
    padding: 0 5px;
    color: #6c757d;
}

/* Stats */
.mwb-bookings-stats {
    color: #495057;
    font-size: 14px;
}

.mwb-bookings-stats strong {
    color: #212529;
    font-size: 16px;
}

/* No Bookings Message */
.mwb-no-bookings {
    text-align: center;
    padding: 60px 20px !important;
    color: #6c757d;
    font-size: 16px;
}

/* Modal Styles */
.mwb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease;
}

.mwb-modal {
    background: white;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.mwb-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mwb-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
}

.mwb-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mwb-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.mwb-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.mwb-detail-section h4 {
    margin: 0 0 15px 0;
    color: #212529;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.mwb-detail-section p {
    margin: 8px 0;
    color: #495057;
    font-size: 14px;
}

.mwb-detail-section strong {
    color: #212529;
}

.mwb-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

/* Loader */
.mwb-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.mwb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Notifications */
.mwb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    z-index: 1000000;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideInRight 0.3s ease;
}

.mwb-notification-success {
    background: #28a745;
}

.mwb-notification-error {
    background: #dc3545;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .mwb-booking-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mwb-booking-filters input,
    .mwb-booking-filters select {
        width: 100%;
    }
    
    .mwb-bookings-table {
        font-size: 12px;
    }
    
    .mwb-bookings-table th,
    .mwb-bookings-table td {
        padding: 10px 8px;
    }
    
    .mwb-actions {
        flex-direction: column;
    }
    
    .mwb-bookings-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .mwb-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Full-screen mode for booking manager */
.mwb-fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: white;
    overflow: auto;
}

.mwb-fullscreen-mode #mwb-bookings-container {
    min-height: 100vh;
    margin: 0;
}