/**
 * Imaging Booking Pro - Public Styles
 */

.ibp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ibp-services-container {
    margin: 30px 0;
}

.ibp-services-container.grid-view .ibp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.ibp-services-container.list-view .ibp-services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ibp-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ibp-service-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ibp-service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f4f6;
}

.ibp-service-content {
    padding: 20px;
}

.ibp-service-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1f2937;
}

.ibp-service-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 14px;
    color: #6b7280;
}

.ibp-service-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ibp-service-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.ibp-service-footer {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibp-price-display {
    font-size: 20px;
    font-weight: bold;
    color: #ff4c88;
}

.ibp-service-quick-book {
    padding: 8px 20px;
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ibp-service-quick-book:hover {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
}

.ibp-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 76, 136, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.ibp-filters-bar {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.ibp-filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ibp-filter-select,
.ibp-sort-select {
    padding: 8px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

#ibp-search-services {
    flex: 1;
    min-width: 250px;
    padding: 8px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.ibp-view-toggle {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.ibp-view-toggle button {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ibp-view-toggle button:first-child {
    border-radius: 4px 0 0 4px;
}

.ibp-view-toggle button:last-child {
    border-radius: 0 4px 4px 0;
}

.ibp-view-toggle button.active {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border-color: transparent;
}

.ibp-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.ibp-provider-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ibp-provider-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ibp-provider-header {
    padding: 20px;
    background: linear-gradient(135deg, #ff4c88 0%, #ff8a63 100%);
    color: white;
}

.ibp-provider-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.ibp-provider-type {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 12px;
    text-transform: uppercase;
}

.ibp-provider-body {
    padding: 20px;
}

.ibp-provider-info {
    margin: 10px 0;
    color: #4b5563;
    font-size: 14px;
}

.ibp-provider-info i {
    width: 20px;
    color: #9ca3af;
    margin-right: 8px;
}

.ibp-provider-rating {
    margin: 15px 0;
}

.ibp-star {
    color: #fbbf24;
    font-size: 18px;
}

.ibp-star.empty {
    color: #e5e7eb;
}

.ibp-provider-actions {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

.ibp-provider-view-details,
.ibp-provider-book-now {
    flex: 1;
    padding: 8px 15px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.ibp-provider-view-details {
    border: 1px solid #ff4c88;
    color: #ff4c88;
    background: white;
}

.ibp-provider-view-details:hover {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
}

.ibp-provider-book-now {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border: 1px solid transparent;
}

.ibp-provider-book-now:hover {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    border-color: transparent;
}

.ibp-my-bookings {
    margin: 30px 0;
}

.ibp-bookings-table {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.ibp-bookings-table thead {
    background: #f9fafb;
}

.ibp-bookings-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.ibp-bookings-table td {
    padding: 12px 15px;
    color: #4b5563;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.ibp-bookings-table tbody tr:hover {
    background: #f9fafb;
}

.ibp-booking-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ibp-booking-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.ibp-booking-status.confirmed {
    background: #dbeafe;
    color: #1e40af;
}

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

.ibp-booking-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.ibp-booking-actions {
    display: flex;
    gap: 8px;
}

.ibp-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ibp-btn-view {
    background: #6b7280;
    color: white;
}

.ibp-btn-reschedule {
    background: #3b82f6;
    color: white;
}

.ibp-btn-cancel {
    background: #ef4444;
    color: white;
}

.ibp-btn-review {
    background: #10b981;
    color: white;
}

.ibp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.ibp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    display: none;
}

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

.ibp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.ibp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ibp-modal-close:hover {
    color: #1f2937;
}

.ibp-modal-body {
    padding: 20px;
}

.ibp-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

body.ibp-modal-open {
    overflow: hidden;
}

.ibp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    z-index: 10000;
    max-width: 350px;
    animation: ibp-slide-in 0.3s ease;
}

@keyframes ibp-slide-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.ibp-notification-success {
    background: #10b981;
    color: white;
}

.ibp-notification-error {
    background: #ef4444;
    color: white;
}

.ibp-notification-info {
    background: #3b82f6;
    color: white;
}

.ibp-notification-warning {
    background: #f59e0b;
    color: white;
}

.ibp-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    float: right;
    margin-left: 15px;
    line-height: 1;
}

.ibp-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
}

.ibp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #ff4c88;
    border-radius: 50%;
    animation: ibp-spin 1s linear infinite;
}

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

.ibp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
}

.ibp-pagination a {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ibp-pagination a:hover {
    background: #f9fafb;
    border-color: #ff4c88;
    color: #ff4c88;
}

.ibp-pagination a.active {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border-color: transparent;
}

.ibp-pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ibp-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin: 20px 0;
}

.ibp-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.ibp-accordion-item:last-child {
    border-bottom: none;
}

.ibp-accordion-header {
    padding: 15px 20px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.ibp-accordion-header:hover {
    background: #f3f4f6;
}

.ibp-accordion-header.active {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
}

.ibp-accordion-content {
    padding: 20px;
    display: none;
}

.ibp-tabs {
    margin: 30px 0;
}

.ibp-tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.ibp-tab-nav a {
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.ibp-tab-nav a:hover {
    color: #ff4c88;
}

.ibp-tab-nav a.active {
    color: #ff4c88;
    border-bottom-color: #ff4c88;
}

.ibp-tab-content {
    padding: 20px;
    display: none;
}

.ibp-tab-content.active {
    display: block;
}

.ibp-tooltip-box {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10001;
    white-space: nowrap;
    pointer-events: none;
}

.ibp-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}
h2.hndle {
    margin-left: 10px !important;
}

@media (max-width: 768px) {
    .ibp-services-container.grid-view .ibp-services-grid {
        grid-template-columns: 1fr;
    }
    
    .ibp-providers-grid {
        grid-template-columns: 1fr;
    }
    
    .ibp-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ibp-filter-select,
    .ibp-sort-select,
    #ibp-search-services {
        width: 100%;
    }
    
    .ibp-view-toggle {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    
    .ibp-modal {
        width: 95%;
    }
    
    .ibp-bookings-table {
        font-size: 12px;
    }
    
    .ibp-bookings-table th,
    .ibp-bookings-table td {
        padding: 8px 10px;
    }
    
    .ibp-booking-actions {
        flex-direction: column;
    }
}