/* Social Messaging - Message Actions */
.message-actions {
    display: flex;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease;
    position: absolute;
    top: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 3px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Show actions on hover */
.message:hover .message-actions {
    opacity: 1;
}

/* Position actions based on message direction */
.message-actions.actions-left {
    left: 10px; /* For sent messages (out) */
}

.message-actions.actions-right {
    right: 10px; /* For received messages (in) */
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 3px 5px;
    margin: 0 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.reply-btn:hover {
    color: #2196F3;
}

.delete-btn:hover {
    color: #F44336;
}

/* Reply Container */
#reply-container {
    background: #f5f5f5;
    padding: 8px 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#reply-preview {
    flex: 1;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

#cancel-reply-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#cancel-reply-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* Voice Recording */
#voice-record-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

#voice-record-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

#voice-record-btn.recording {
    color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

/* Media Button */
#media-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

#media-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Voice Message */
.voice-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.voice-play-btn {
    background: none;
    border: none;
    color: #2196F3;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.voice-play-btn:hover {
    background: rgba(33, 150, 243, 0.1);
}

/* Media Message */
.media-message {
    max-width: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.media-message img {
    width: 100%;
    height: auto;
    display: block;
}

.media-message video {
    width: 100%;
    height: auto;
    display: block;
}