/* Filter form styling - only applies when filters are enabled */
.job_listings .job_filters {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}

.job_filters .search_jobs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.job_filters .search_jobs > div {
    min-width: 150px;
    flex: 1;
}

.job_filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.job_filters input[type="text"],
.job_filters select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
}

.job_filters input[type="text"]:focus,
.job_filters select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.job_filters .search_submit {
    flex-shrink: 0;
}

.job_filters .search_submit input[type="submit"] {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.job_filters .search_submit input[type="submit"]:hover {
    background: #005a87;
}

/* Loading state */
.job_listings.loading { 
    opacity: 0.5; 
    pointer-events: none; 
}

/* Clear filters link */
.clear_filters {
    margin-top: 15px;
    text-align: right;
}

.clear-filters-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    display: inline-block;
    transition: all 0.2s;
}

.clear-filters-link:hover {
    color: #333;
    text-decoration: none;
    border-color: #999;
    background: #f5f5f5;
}

/* No results message */
.no-jobs-found {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .job_filters .search_jobs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job_filters .search_jobs > div {
        min-width: auto;
        width: 100%;
    }
    
    .job_filters .search_submit input[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }
}