/* Profile Picture Styles */
.profile-avatar-large {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--f7-theme-color, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-avatar-large:hover {
    transform: scale(1.05);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-large i {
    font-size: 48px;
    color: white;
}

.avatar-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-avatar-large:hover .avatar-upload-overlay {
    opacity: 1;
}

/* Profile picture in posts and comments */
.post-avatar.clickable-avatar,
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--f7-theme-color, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.post-avatar.clickable-avatar img,
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-avatar.clickable-avatar img,
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.comment-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--f7-theme-color, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
}
.message {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-end;
}

.message-sent {
    justify-content: flex-end;
}

.message-received {
    justify-content: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--f7-theme-color, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-bubble {
    max-width: 70%;
    background: #f0f0f0;
    border-radius: 18px;
    padding: 8px 12px;
    position: relative;
}

.message-sent .message-bubble {
    background: #007aff;
    color: white;
}

.message-received .message-bubble {
    background: #e5e5ea;
    color: black;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--f7-theme-color, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.user-search-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--f7-theme-color, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
}
/* Sidebar avatar styling */
.user-avatar-sidebar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--f7-theme-color, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.user-avatar-sidebar i {
    font-size: 30px;
    color: white;
}

.user-avatar-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}