/* public/assets/css/orders.css */

/* Gaya untuk filter container yang lebih profesional */
.filter-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 2.5rem !important;
    border: 1px solid #e9ecef;
}

.custom-filter-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-icon {
    position: absolute;
    left: 1rem;
    z-index: 10;
    color: #6c757d;
    pointer-events: none;
}

.custom-filter-group .form-control,
.custom-filter-group .choices__inner {
    padding-left: 2.8rem !important;
}

.custom-filter-group .choices {
    width: 100%;
}

.filter-container .form-control {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.filter-container .form-control:focus {
    border-color: #f09480;
    box-shadow: 0 0 0 0.2rem rgba(238, 77, 45, 0.15);
}

.filter-container .btn-primary {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.95rem;
}

.choices {
    margin-bottom: 0;
}

.choices__inner {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    min-height: auto;
}

.choices[data-type*="select-one"].is-open .choices__inner {
    border-radius: 0.5rem 0.5rem 0 0;
}

.choices .choices__inner:focus, .is-open .choices__inner {
    border-color: #f09480;
    box-shadow: 0 0 0 0.2rem rgba(238, 77, 45, 0.15);
}

.choices__list--dropdown {
    border: 1px solid #f09480;
    border-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 20;
}

.choices__item--choice {
    padding: 0.75rem 1rem;
}

.choices__item--choice.is-highlighted {
    background-color: #fef3f1;
    color: #ee4d2d;
}

.choices[data-type*="select-one"]::after {
    content: '';
    height: 0;
    width: 0;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    border-width: 5px;
    position: absolute;
    right: 11.5px;
    top: 50%;
    margin-top: -2.5px;
    pointer-events: none;
}

.choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent #333 transparent;
    margin-top: -7.5px;
}

.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input {
    display: none !important;
}

.service-card-wrapper .service-card {
    border: 1px solid #dee2e6; 
    border-radius: 12px;
    background-color: #ffffff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card-wrapper .service-card:hover {
    /* PERUBAHAN: Menghapus transform dan box-shadow untuk efek yang sangat minimal */
    border-color: #ee4d2d; 
}

.service-card-wrapper .card-img-top {
    object-fit: cover;
    height: 140px;
    border-bottom: 1px solid #f1f1f1;
}

.service-card-wrapper .card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-wrapper .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card-wrapper .price-container {
    margin-top: auto;
    padding-top: 0.5rem;
}

.service-card-wrapper .price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ee4d2d;
}

.service-card-wrapper .price-currency {
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 2px;
}

.service-card-wrapper .price-unit {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.service-card-wrapper .card-footer {
    background-color: transparent;
    border-top: none;
    padding: 0 1rem 1rem 1rem;
}

.service-card-wrapper .btn-outline-secondary {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #fdece7;
    color: #ee4d2d;
    background-color: #fdece7;
    transition: all 0.2s ease;
}

.service-card-wrapper .btn-outline-secondary:hover {
    background-color: #ee4d2d;
    border-color: #ee4d2d;
    color: #fff;
}

.filter-response-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d; /* Abu-abu */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-response-text span {
    color: #ee4d2d; /* Oranye */
}

.total-services-info {
    color: #6c757d;
    font-size: 0.85rem;
}

.pagination .page-item .page-link {
    color: #ee4d2d;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item .page-link:hover {
    background-color: #fef3f1;
    border-color: #f09480;
}

.pagination .page-item.active .page-link {
    background-color: #ee4d2d;
    border-color: #ee4d2d;
    color: #fff;
    box-shadow: 0 3px 8px rgba(238, 77, 45, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination {
    margin-bottom: 0;
}

/* PENAMBAHAN: Gaya baru untuk pesan "Tidak Ada Hasil" */
.no-results-container {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.no-results-container i {
    font-size: 3.5rem;
    color: #ced4da;
    margin-bottom: 1rem;
}

.no-results-container h4 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.no-results-container p {
    color: #6c757d;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


@media (max-width: 767.98px) {
    .pagination-container {
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .filter-container {
        padding: 1rem;
    }
}
