/* Job Filters Container */
.job-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* Inactive buttons: transparent background, colored border */
.job-filters button {
    background-color: transparent; /* transparent when inactive */
    border: 2px solid #1a7b01; /* green border */
    padding: 10px 20px;
    font-family: 'Lexend', sans-serif;
    color: #1a7b01; /* text matches border */
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Remove left margin for first button */
.job-filters button:first-child {
    margin-left: 0;
}

/* Hover or active: fill with green, text white */
.job-filters button:hover,
.job-filters button.active {
    background-color: #7bb100;
    color: #fff !important;
    border-color: #7bb100;
}

/* Loading overlay for jobs container */
.jobs-container.loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

/* Spinner */
.jobs-container.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #fff;
    border-top: 4px solid #7bb100;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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