/* Profile Information card — styled to match the reference layout:
   circular avatar with a camera-upload badge, labeled input fields,
   a primary "Edit Profile" action and an outline "Change Password" action. */

.profile-card{
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 30px 24px;
}
.profile-card h2{
    margin-bottom: 22px;
    font-size: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.profile-body{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Avatar */
.profile-avatar-wrap{
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.profile-avatar{
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eaf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #7a7f94;
}
.avatar-camera-btn{
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* Fields */
.profile-fields{
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.profile-field label{
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 5px;
}
.profile-field input{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f7f8fa;
    color: #333;
}
.profile-field input:disabled{
    color: #444;
    -webkit-text-fill-color: #444;
    opacity: 1;
}
.profile-field input:not(:disabled){
    background: #fff;
    border-color: #1a73e8;
}

/* Actions */
.profile-actions{
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.profile-btn-primary{
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.profile-btn-primary:hover{
    background: #1558b0;
}
.profile-btn-outline{
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.profile-btn-outline:hover{
    background: #f5f5f5;
}

/* Change-password panel */
.password-form{
    display: none;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}
.password-form.open{
    display: flex;
}
.password-form input{
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.password-form .auth-error,
.password-form .empty-msg{
    min-height: 0;
}

@media (max-width: 480px){
    .profile-body{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-fields{
        width: 100%;
    }
}
