/* Job Search Plugin Styles */

.job-search-container {
    display: flex;
    min-height: 600px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

.job-search-filters-panel {
    width: 280px;
    background: #2a2a2a;
    padding: 20px;
    border-right: 1px solid #404040;
    /* Removed overflow-y: auto and max-height */
}

.job-search-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.job-search-filters-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.job-search-filter-count {
    background: #8b5cf6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.job-search-clear-filters {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.job-search-clear-filters:hover {
    color: #8b5cf6;
}

.job-search-filter-section {
    margin-bottom: 25px;
}

.job-search-filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.job-search-filter-section-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}

.job-search-filter-toggle {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.job-search-filter-toggle:hover {
    background: #666;
}

.job-search-filter-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.job-search-filter-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.job-search-search-box {
    width: 100%;
    padding: 10px 12px;
    padding-left: 35px;
    background: #404040;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    position: relative;
}

.job-search-search-box::placeholder {
    color: #888;
}

.job-search-search-box:focus {
    outline: none;
    background: #4a4a4a;
}

.job-search-search-container {
    position: relative;
}

.job-search-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
}

.job-search-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.job-search-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ffffff;
}

.job-search-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #666;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    appearance: none;
    position: relative;
}

.job-search-checkbox:checked {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.job-search-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.job-search-checkbox-count {
    color: #ffffff;
    font-size: 14px;
}

.job-search-main-content {
    flex: 1;
    padding: 20px;
    /* Removed overflow-y: auto and max-height */
}

.job-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.job-search-results-count {
    font-size: 14px;
    color: #ffffff;
}

.job-search-sort-dropdown {
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.job-search-sort-dropdown:focus {
    outline: none;
    border-color: #8b5cf6;
}

.job-search-job-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.job-search-job-card:hover {
    border-color: #666;
}

.job-search-job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.job-search-job-info {
    flex: 1;
}

.job-search-job-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.job-search-job-details {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 15px;
}

.job-search-job-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.job-search-plus-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s ease;
    margin-left: auto;
}

.job-search-plus-btn:hover {
    background: #7c3aed;
}

.job-search-plus-btn.expanded {
    background: #8b5cf6;
}

.job-search-expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    border-top: 1px solid #404040;
    margin-top: 15px;
}

.job-search-expanded-content.expanded {
    max-height: 200px;
    opacity: 1;
    padding-top: 15px;
}

.job-search-expanded-content.show {
    max-height: 200px;
    opacity: 1;
    padding-top: 15px;
}

.job-search-job-number {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 15px;
}

.job-search-action-buttons {
    display: flex;
    gap: 15px;
}

.job-search-save-btn {
    background: transparent;
    border: 1px solid #666;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.job-search-save-btn:hover {
    border-color: #888;
}

.job-search-read-more-btn {
    background: #8b5cf6;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.job-search-read-more-btn:hover {
    background: #7c3aed;
}

.job-search-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #ffffff;
}

.job-search-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #ff6b6b;
}

.job-search-no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #ffffff;
}

/* Pagination Styles */
.job-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.job-search-pagination-btn {
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.job-search-pagination-btn:hover {
    background: #404040;
    border-color: #666;
}

.job-search-pagination-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.job-search-pagination-btn:disabled {
    background: #1a1a1a;
    border-color: #333;
    color: #666;
    cursor: not-allowed;
}

.job-search-pagination-btn:disabled:hover {
    background: #1a1a1a;
    border-color: #333;
}

.job-search-pagination-info {
    color: #ffffff;
    font-size: 14px;
    margin: 0 15px;
}


.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .job-search-container {
        flex-direction: column;
        width: calc(100% - 20px); /* Adjusted for small margins */
        margin: 10px;
    }
    
    .job-search-filters-panel {
        width: 100%;
    }
    
    .job-search-results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .job-search-job-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-search-plus-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .job-search-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .job-search-pagination-btn {
        min-width: 35px;
        padding: 6px 10px;
    }
}

/* Avada Theme Compatibility */
.fusion-body .job-search-container {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fusion-body .job-search-container * {
    box-sizing: border-box;
}

/* Override Avada's default styles if needed */
.job-search-container h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
}

.job-search-container input,
.job-search-container select,
.job-search-container button {
    font-family: inherit !important;
}

.job-search-container button:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5) !important;
}

/* Ensure all text elements are white */
.job-search-container,
.job-search-container * {
    color: #ffffff;
}

.job-search-container .job-search-checkbox-count,
.job-search-container .job-search-results-count {
    color: #ffffff;
}

/* EXPERIENCE SLIDER - SIMPLIFIED VERSION */
.job-search-slider-container {
    padding: 15px 0;
    position: relative;
}

.job-search-range-slider {
    position: relative;
    height: 6px;
    background: #404040;
    border-radius: 3px;
    margin: 25px 0 15px;
    width: 100%;
}

.job-search-range-slider::before {
    content: '';
    position: absolute;
    left: var(--min-thumb-position, 0%);
    right: calc(100% - var(--max-thumb-position, 100%));
    height: 6px;
    background: #8b5cf6;
    border-radius: 3px;
    z-index: 1;
}


/* Slider inputs */
.job-search-slider {
    position: absolute;
    top: -7px;
    left: 0;
    width: 100%;
    height: 20px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

/* Slider thumbs */
.job-search-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.job-search-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: none;
    position: relative;
    z-index: 3;
}

/* Min/Max value display */
.job-search-slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #ffffff;
}

#experience-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #8b5cf6 !important;
    font-weight: 600;
    font-size: 14px;
}

/* Fix slider labels */
.job-search-slider-label {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    color: #ffffff !important;
}

/* Fix slider values positioning */
.job-search-slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
}

.job-search-slider-values span {
    color: #ffffff !important;
}