/* Стили для страницы профиля */

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.profile-title {
    background: #0098db;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
}

.profile-card-body {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #0098db;
}

.btn-primary {
    background: #0098db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0077b3;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    background: #dd007a;
    border: none;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #cbd5e0;
}

.btn-small.edit-profile-btn{
  background: #0098db;
}

.btn-danger {
    background: #fed7d7;
    color: #742a2a;
}

.btn-danger:hover {
    background: #fecaca;
}

.success-message {
    background: #c6f6d5;
    color: #22543d;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #38a169;
}

.error-message {
    background: #fed7d7;
    color: #742a2a;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
}

.profiles-list {
    margin-bottom: 20px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.profile-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-item.default {
    border-left: 4px solid #0098db;
    background: #f0f9ff;
}

.default-badge {
    background: #0098db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 10px;
}

.profile-type {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.edit-profile-form {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease;
}

.edit-profile-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2d3748;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-add-profile {
    background: none;
    border: 2px dashed #cbd5e0;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    color: #4a5568;
    margin-top: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-add-profile:hover {
    border-color: #0098db;
    color: #0098db;
}

#addProfileForm {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#addProfileForm h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2d3748;
}

.phone-hint, .password-requirements {
    font-size: 11px;
    color: #718096;
    margin-top: 4px;
}

.empty-profiles {
    color: #718096;
    text-align: center;
    padding: 20px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

/* Стили для подсказок DaData */
.suggestions-wrapper {
    position: relative;
    width: 100%;
}

.suggestions-suggestions {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestions-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.suggestions-suggestion:last-child {
    border-bottom: none;
}

.suggestions-suggestion:hover {
    background: #f7fafc;
}

.suggestions-suggestion strong {
    color: #0098db;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
