/* Стили для поиска пользователей */
.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    z-index: 1000;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input::placeholder {
    color: #6c757d;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 4px;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item.selected {
    background-color: #e3f2fd;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e1e5e9;
}

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

.user-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.user-type.user {
    background-color: #d4edda;
    color: #155724;
}

.user-type.student {
    background-color: #d1ecf1;
    color: #0c5460;
}

.user-groups {
    margin-top: 5px;
}

.group-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    background-color: #e2e3e5;
    color: #333;
    border-radius: 8px;
    margin-right: 4px;
    margin-bottom: 2px;
}

.group-badge.no-groups {
    background-color: #f8d7da;
    color: #721c24;
    font-style: italic;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.search-error {
    padding: 20px;
    text-align: center;
    color: #dc3545;
}

/* Анимации */
.search-results {
    animation: slideDown 0.2s ease-out;
}

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

