/* Candidate Pool Premium Styles */
.candidate-pool-container {
    font-family: 'Outfit', sans-serif;
    padding-top: 40px;
    background: #f8fafc;
    min-height: 100vh;
}

.pool-hero {
    text-align: center;
    margin-bottom: 50px;
}

.pool-hero h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.pool-hero p {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Elements */
.form-label-v2 {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-v2, .select-v2 {
    width: 100%;
    height: 56px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 16px;
    color: #1e293b;
    transition: all 0.3s ease;
}

.input-v2:focus, .select-v2:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Buttons */
.btn-search-v2 {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-search-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
    filter: brightness(1.1);
}

.btn-count-v2 {
    width: 100%;
    height: 56px;
    background: #fff;
    color: #2563eb;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-count-v2:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

/* Accordion Segments */
.pool-segment {
    background: #fff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-header-clickable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 35px;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}

.segment-header-clickable:hover {
    background: #f8fafc;
}

.segment-body {
    padding: 0 35px 35px;
    display: none;
    border-top: 1px solid #f1f5f9;
}

.segment-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.segment-title i {
    font-size: 24px;
    color: #2563eb;
    background: #eff6ff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.segment-title h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.toggle-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
}

.pool-segment.active .toggle-icon {
    transform: rotate(180deg);
    background: #2563eb;
    color: #fff;
}

.pool-segment.active .segment-title i {
    background: #2563eb;
    color: #fff;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 56px !important;
    background: #f1f5f9 !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-size: 16px !important;
    font-family: 'Outfit', sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px !important;
}

.select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Results Table */
.candidates-table-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.custom-premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-premium-table thead th {
    background: #f8fafc;
    padding: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #f1f5f9;
}

.custom-premium-table tbody td {
    padding: 24px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.candidate-info-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.candidate-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.candidate-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    display: block;
}

.candidate-meta {
    font-size: 12px;
    color: #64748b;
}

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.skill-tag {
    font-size: 12px;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.lang-tag {
    font-size: 11px;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.location-cell {
    display: flex;
    flex-direction: column;
}

.country-name { font-weight: 600; color: #1e293b; font-size: 14px; }
.city-name { font-size: 12px; color: #64748b; }

.btn-detail-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8fafc;
    color: #3b82f6;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.btn-detail-v2:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateX(3px);
}

/* Search Results Specific */
.search-results-wrapper { padding-bottom: 60px; }

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

.results-info h2 { font-size: 24px; font-weight: 800; color: #1e293b; margin: 0; }
.results-info p { margin: 0; font-size: 14px; color: #64748b; }

.btn-back-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-back-search:hover {
    background: #e2e8f0;
    transform: translateX(-3px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.empty-state i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pool-hero {
    animation: fadeInUp 0.8s ease-out;
}
