body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.member-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 15px;
    background: white;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.member-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.flag {
    font-size: 1.2em;
    margin-right: 8px;
}

.city {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

.linkedin-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
}

.linkedin-link:hover .linkedin-icon {
    opacity: 0.7;
}

.btn-dark {
    background-color: #2c3e50;
    border-color: #2c3e50;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85em;
    font-weight: 500;
}

.btn-dark:hover {
    background-color: #34495e;
    transform: translateY(-1px);
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Search Section Styling */
.search-section .card {
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-section .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.search-section .card-title i {
    color: #667eea;
    margin-right: 8px;
}

.search-input {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.6rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.search-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#clearFilters {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

#clearFilters:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

#resultsCounter {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Search Results Styling */
.search-results-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
}

.search-results-empty h5 {
    color: #495057;
    margin-bottom: 1rem;
}

/* Responsive Search Design */
@media (max-width: 768px) {
    .member-card {
        margin-bottom: 1.5rem;
    }
    
    .header-section {
        padding: 2rem 1rem;
    }
    
    .search-section .card-body {
        padding: 1.5rem;
    }
    
    .search-section .row.g-3 {
        --bs-gutter-x: 1rem;
    }
    
    #clearFilters {
        margin-bottom: 1rem;
    }
    
    #resultsCounter {
        display: block;
        text-align: center;
    }
}

/* Loading Animation */
.search-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact icons: inline leading, 20x20 with 4px gap */
.contact-icon {
  width: 20px;
  height: 20px;
  vertical-align: text-bottom;
  margin-right: 4px;
}
