/* Back link styles */
.ss-back-link {
    display: inline-flex;
    align-items: center;
    color: #495057;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ss-back-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.ss-back-link:hover {
    color: #0d6efd;
}

/* Filter styles */
.ss-search-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ss-filter-btn {
    height: 38px;
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    position: relative;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-filter-btn:hover, .ss-filter-btn.active {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.ss-input-group {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.ss-input-group-text {
    background-color: white;
    border: none;
    color: #6c757d;
}

.ss-form-control {
    border: none;
    padding: 0.5rem 1rem;
}

.ss-form-control:focus {
    box-shadow: none;
}

.ss-clear-filters {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.15s ease-in-out;
}

.ss-clear-filters:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.ss-clear-filters i {
    font-size: 1rem;
}

/* Dropdown menu styles */
.ss-search-filters .dropdown-menu { /* Scoped to dropdowns within ss-search-filters */
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}
        
.ss-search-filters .dropdown-item { /* Scoped to dropdown items within ss-search-filters */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 0.15s ease-in-out;
}

.ss-search-filters .dropdown-item:hover { /* Scoped */
    background-color: #f8f9fa;
}

/* ============================================
   SALARY TOOL CTA BANNER
   ============================================ */

.salary-tool-cta {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 24px;
}

.salary-tool-cta .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.salary-tool-cta .cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.salary-tool-cta .cta-text strong {
    color: #1e40af;
    font-size: 15px;
}

.salary-tool-cta .cta-text span {
    color: #3b82f6;
    font-size: 14px;
}

.salary-tool-cta .cta-button {
    display: inline-flex;
    align-items: center;
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.salary-tool-cta .cta-button:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .salary-tool-cta .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .salary-tool-cta .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   STATE CARDS - CLICKABLE WITH NEW STYLING
   ============================================ */

.state-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.state-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.state-card {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.state-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.state-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.state-card .salary-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.state-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.state-card .stat-label {
    font-size: 13px;
    color: #64748b;
}

.state-card .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.state-card .stat-value.highlight {
    color: #059669;
    font-size: 16px;
}

.state-card .card-footer-link {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.state-card .card-footer-link i {
    transition: transform 0.2s ease;
}

.state-card:hover .card-footer-link i {
    transform: translateX(4px);
}

/* ============================================
   SALARY GUIDES SECTION
   ============================================ */

.salary-guides-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.guide-card {
    display: block;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    height: 100%;
}

.guide-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.guide-card .guide-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.guide-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .guide-card {
        padding: 16px;
    }

    .guide-card .guide-icon {
        font-size: 24px;
    }

    .guide-card h3 {
        font-size: 0.95rem;
    }
}
