* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.search-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 55px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.search-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.loading-spinner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.results-container {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.results-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.user-result {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.user-result:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-bio {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.user-result:hover .user-bio {
    color: rgba(255, 255, 255, 0.9);
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
    margin-left: 15px;
}

.user-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-result:hover .user-stats {
    color: rgba(255, 255, 255, 0.8);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 18px;
    font-weight: 500;
}

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

.user-result {
    animation: fadeInUp 0.3s ease forwards;
}

.user-result:nth-child(1) { animation-delay: 0.05s; }
.user-result:nth-child(2) { animation-delay: 0.1s; }
.user-result:nth-child(3) { animation-delay: 0.15s; }
.user-result:nth-child(4) { animation-delay: 0.2s; }
.user-result:nth-child(5) { animation-delay: 0.25s; }
.user-result:nth-child(6) { animation-delay: 0.3s; }
.user-result:nth-child(7) { animation-delay: 0.35s; }
.user-result:nth-child(8) { animation-delay: 0.4s; }
.user-result:nth-child(9) { animation-delay: 0.45s; }
.user-result:nth-child(10) { animation-delay: 0.5s; }

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    text-align: center;
}

.modal-text {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-text strong {
    color: #667eea;
    font-weight: 600;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn-yes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn-no {
    background: #f0f0f0;
    color: #666;
}

.modal-btn-no:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .search-wrapper {
        padding: 30px 20px;
    }

    .title {
        font-size: 2rem;
    }

    .user-stats {
        display: none;
    }

    .user-name {
        font-size: 16px;
    }

    .user-bio {
        font-size: 13px;
    }

    .user-result {
        padding: 15px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-text {
        font-size: 1rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}
