/* Job Filter Sidebar Styles */
.job-filter-sidebar-jfs456 {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Inter', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 300px;
}

/* Filter Header */
.filter-header-jfs456 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-title-jfs456 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Clear Filter Button */
.clear-filter-btn-jfs456 {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.clear-filter-btn-jfs456.visible {
    opacity: 1;
    visibility: visible;
}

.clear-filter-btn-jfs456:hover {
    color: #10b981;
}

/* Filter Section */
.filter-section-jfs456 {
    margin-bottom: 1.5rem;
}

.filter-section-title-jfs456 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

/* Filter Options */
.filter-options-jfs456 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Filter Option Label */
.filter-option-jfs456 {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    min-height: 1.5rem;
}

/* Hide default checkbox */
.filter-checkbox-jfs456 {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkbox */
.checkbox-custom-jfs456 {
    position: absolute;
    left: 0;
    top: 0.125rem;
    height: 1.25rem;
    width: 1.25rem;
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Checkbox Hover */
.filter-option-jfs456:hover .checkbox-custom-jfs456 {
    border-color: #10b981;
}

/* Checkbox Checked */
.filter-checkbox-jfs456:checked ~ .checkbox-custom-jfs456 {
    background-color: #10b981;
    border-color: #10b981;
}

/* Checkmark */
.checkbox-custom-jfs456:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.4rem;
    top: 0.15rem;
    width: 0.35rem;
    height: 0.7rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show checkmark when checked */
.filter-checkbox-jfs456:checked ~ .checkbox-custom-jfs456:after {
    display: block;
}

/* Filter Label */
.filter-label-jfs456 {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.4;
    user-select: none;
    word-break: break-word;
}

/* Active label */
.filter-checkbox-jfs456:checked ~ .filter-label-jfs456 {
    color: #1f2937;
    font-weight: 500;
}

/* Filter Status */
.filter-status-jfs456 {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-status-jfs456.active {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .job-filter-sidebar-jfs456 {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .filter-header-jfs456 {
        margin-bottom: 1rem;
    }
    
    .filter-title-jfs456 {
        font-size: 1.125rem;
    }
    
    .filter-options-jfs456 {
        gap: 0.5rem;
    }
    
    .filter-label-jfs456 {
        font-size: 0.875rem;
    }
}

/* Integration with main search layout */
.job-search-container-with-filter {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .job-search-container-with-filter {
        grid-template-columns: 1fr;
    }
}


/* Job Filter Sidebar Styles */
.job-filter-sidebar-jfs456 {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Inter', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 300px;
}

/* Filter Header */
.filter-header-jfs456 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-title-jfs456 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Clear Filter Button */
.clear-filter-btn-jfs456 {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.clear-filter-btn-jfs456.visible {
    opacity: 1;
    visibility: visible;
}

.clear-filter-btn-jfs456:hover {
    color: #10b981;
}

/* Filter Section */
.filter-section-jfs456 {
    margin-bottom: 1.5rem;
}

.filter-section-title-jfs456 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

/* Filter Options */
.filter-options-jfs456 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Filter Option Label */
.filter-option-jfs456 {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    min-height: 1.5rem;
}

/* Hide default checkbox */
.filter-checkbox-jfs456 {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkbox */
.checkbox-custom-jfs456 {
    position: absolute;
    left: 0;
    top: 0.125rem;
    height: 1.25rem;
    width: 1.25rem;
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Checkbox Hover */
.filter-option-jfs456:hover .checkbox-custom-jfs456 {
    border-color: #10b981;
}

/* Checkbox Checked */
.filter-checkbox-jfs456:checked ~ .checkbox-custom-jfs456 {
    background-color: #10b981;
    border-color: #10b981;
}

/* Checkmark */
.checkbox-custom-jfs456:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.4rem;
    top: 0.15rem;
    width: 0.35rem;
    height: 0.7rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show checkmark when checked */
.filter-checkbox-jfs456:checked ~ .checkbox-custom-jfs456:after {
    display: block;
}

/* Filter Label */
.filter-label-jfs456 {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.4;
    user-select: none;
    word-break: break-word;
}

/* Active label */
.filter-checkbox-jfs456:checked ~ .filter-label-jfs456 {
    color: #1f2937;
    font-weight: 500;
}

/* Filter Status */
.filter-status-jfs456 {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-status-jfs456.active {
    opacity: 1;
}

/* URL filter indicator */
.job-filter-sidebar-jfs456[data-url-filter]:not([data-url-filter=""]) {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .job-filter-sidebar-jfs456 {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .filter-header-jfs456 {
        margin-bottom: 1rem;
    }
    
    .filter-title-jfs456 {
        font-size: 1.125rem;
    }
    
    .filter-options-jfs456 {
        gap: 0.5rem;
    }
    
    .filter-label-jfs456 {
        font-size: 0.875rem;
    }
}

/* Integration with main search layout */
.job-search-container-with-filter {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .job-search-container-with-filter {
        grid-template-columns: 1fr;
    }
}



/* Additional styles for multiple filter sections */
.filter-section-jfs456 + .filter-section-jfs456 {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Scrollable filter options for many categories */
.filter-options-jfs456 {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar */
.filter-options-jfs456::-webkit-scrollbar {
    width: 6px;
}

.filter-options-jfs456::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.filter-options-jfs456::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filter-options-jfs456::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* URL filter indicator */
.job-filter-sidebar-jfs456[data-url-filter]:not([data-url-filter=""]) {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
}