<style>
.person-search-component {
    max-width: 900px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

/* Форма поиска */
.search-form-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-form-container h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.required {
    color: #dc3545;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #0366d6;
    box-shadow: 0 0 0 2px rgba(3, 102, 214, 0.1);
}

/* Стили для ошибок валидации */
.field-error-input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1) !important;
}

.field-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-primary {
    background: #0366d6;
    color: white;
}

.btn-primary:hover {
    background: #0256c7;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

/* Результаты поиска */
.search-results {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-results h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.persons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.person-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.person-fio {
    font-weight: 500;
    color: #333;
}

.person-username {
    color: #666;
    font-size: 0.9em;
    font-family: monospace;
}

/* Информация о пользователе */
.person-info {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.person-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.person-info-header h4 {
    margin: 0;
    color: #333;
}

.person-info-content {
    line-height: 1.6;
}

/* Индикатор загрузки */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin: 20px 0;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0366d6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Сообщения об ошибках */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 15px 0;
}

/* Пагинация */
.pagination-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9em;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    font-size: 0.9em;
    min-width: 40px;
}

.pagination-current {
    background: #0366d6 !important;
    color: white !important;
}

.pagination-current:hover {
    background: #0366d6 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .person-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .person-info-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .person-search-component {
        margin: 10px 0;
    }
    
    .search-form-container,
    .search-results,
    .person-info {
        padding: 15px;
    }
}
</style>