
/* Контейнер профиля */
.profile-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
}

/* Секция аватара */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f3e5f5;
    background: #ddd;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #8a2be2;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid white;
    font-size: 16px;
    transition: transform 0.2s;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    background: #6a1b9a;
}

.avatar-info h3 {
    margin: 0 0 5px 0;
    color: #4a148c;
}

.avatar-info p {
    margin: 0;
    color: #6a1b9a;
    font-size: 14px;
}

/* Форма данных */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a148c;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1c4e9;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
    color: #333;
}

.form-group input:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.form-group input[readonly] {
    background: #f9f9f9;
    color: #888;
    cursor: not-allowed;
}

/* Кнопки действий */
.actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-save {
    background: #8a2be2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-save:hover {
    background: #6a1b9a;
}

.btn-danger {
    background: transparent;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #ffebee;
    border-color: #ef5350;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .avatar-section {
        flex-direction: column;
        text-align: center;
    }
    .actions {
        flex-direction: column-reverse;
        gap: 15px;
    }
    .btn-save, .btn-danger {
        width: 100%;
    }
}