/* ===================================================================
   CATALOG SHARED STYLES - Untuk Katalog Usaha dan Katalog Produk
   =================================================================== */

/* Banner Styles */
.catalog-banner {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0 3rem;
    margin-top: 70px;
}

.catalog-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.catalog-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 0;
}

/* Content Section */
.content-section {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Search & Filter Section */
.search-filter-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.search-filter-section h5 {
    color: var(--secondary-blue);
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 10px;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Button Styles */
.btn-filter {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-filter:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: white;
}

.btn-reset {
    background: #6c757d;
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
}

/* Header Controls */
.catalog-header {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.catalog-header h4 {
    color: var(--secondary-blue);
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 10px;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 8px 15px;
    min-width: 150px;
    font-size: 14px;
}

.control-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Checkbox Filter Styles */
.filter-checkboxes {
    max-height: 200px;
    overflow-y: auto;
}

.filter-checkboxes-product {
    max-height: 400px;
    overflow-y: auto;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.filter-item:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding: 8px 15px;
    border-radius: 8px;
    border-bottom: 1px solid transparent;
}

.filter-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: var(--primary-blue);
}

.filter-label {
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
    flex-grow: 1;
    user-select: none;
}

.filter-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.filter-action-btn {
    background: none;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-action-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* Results Info */
.results-info {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 14px;
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 0.375rem;
}

.pagination .page-item {
    display: list-item;
    float: left;
}

.pagination .page-link {
    position: relative;
    display: block;
    color: #0d6efd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    font-size: 1rem;
    line-height: 1.25;
}

.pagination .page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    z-index: 2;
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-link:focus {
    z-index: 3;
    color: #0a58ca;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.pagination::after {
    content: "";
    display: table;
    clear: both;
}

/* No Results Styles */
.no-results, .no-business {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i, .no-business i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* Statistics Section */
.statistics-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.statistics-title {
    color: var(--secondary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-banner {
        padding: 3rem 0 2rem;
    }

    .catalog-banner h1 {
        font-size: 2rem;
    }

    .content-section {
        padding-top: 30px;
    }

    .search-filter-section {
        position: static;
        margin-bottom: 20px;
    }

    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .control-group {
        justify-content: space-between;
    }

    .modal-dialog {
        margin: 10px;
    }

    .filter-actions {
        justify-content: space-between;
    }

    .filter-checkboxes {
        max-height: 150px;
    }
}
