/* Filter modal styles */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.filter-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-modal-content form {
    margin-top: 0.5rem;
}

/* Responsive filter section */
@media (max-width: 767px) {
    .filter-section {
        display: none;
    }
}

/* Region container visibility */
.kabupaten-container.visible,
.kecamatan-container.visible {
    opacity: 1 !important;
}

/* Loading indicator for filtering/search */
.filter-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.375rem;
}

.filter-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #36b446;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.filter-loading-text {
    margin-left: 12px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Vacancy loading overlay styles */
.vacancy-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 0.5rem;
}

.vacancy-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #36b446;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vacancy-loading-text {
    margin-top: 12px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

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