
/* ============================================
   CHAT MODERATION CONTROLS
   ============================================ */

/* Message wrapper with hover for moderation */
.floating-chat-msg {
    position: relative;
    transition: background 0.2s;
}

.floating-chat-msg:hover {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 5px;
    margin: -5px;
}

/* Role badge in message */
.msg-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Moderation buttons container */
.msg-mod-actions {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    gap: 5px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.floating-chat-msg:hover .msg-mod-actions {
    display: flex;
}

/* Individual moderation button */
.msg-mod-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 3px;
}

.msg-mod-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Delete button */
.msg-mod-btn.delete {
    color: #e74c3c;
}

.msg-mod-btn.delete:hover {
    background: #ffe5e5;
    color: #c0392b;
}

/* Warn button */
.msg-mod-btn.warn {
    color: #f39c12;
}

.msg-mod-btn.warn:hover {
    background: #fff3e0;
    color: #e67e22;
}

/* Ban button */
.msg-mod-btn.ban {
    color: #e74c3c;
}

.msg-mod-btn.ban:hover {
    background: #ffe5e5;
    color: #c0392b;
}

/* Info button */
.msg-mod-btn.info {
    color: #3498db;
}

.msg-mod-btn.info:hover {
    background: #e3f2fd;
    color: #2980b9;
}

/* Deleted message style */
.floating-chat-msg.deleted {
    opacity: 0.5;
}

.floating-chat-msg.deleted .floating-chat-msg-content {
    background: #f5f5f5;
    border-left: 3px solid #e74c3c;
}

.floating-chat-msg.deleted .floating-chat-msg-text {
    font-style: italic;
    color: #999;
}

/* Quick action modal */
.quick-mod-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    min-width: 300px;
}

.quick-mod-modal.show {
    display: block;
}

.quick-mod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.quick-mod-overlay.show {
    display: block;
}

.quick-mod-modal h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.quick-mod-modal input,
.quick-mod-modal textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: inherit;
}

.quick-mod-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.quick-mod-modal-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.quick-mod-modal-buttons .cancel {
    background: #95a5a6;
    color: white;
}

.quick-mod-modal-buttons .cancel:hover {
    background: #7f8c8d;
}

.quick-mod-modal-buttons .confirm {
    background: #3498db;
    color: white;
}

.quick-mod-modal-buttons .confirm:hover {
    background: #2980b9;
}

.quick-mod-modal-buttons .confirm.danger {
    background: #e74c3c;
}

.quick-mod-modal-buttons .confirm.danger:hover {
    background: #c0392b;
}

/* Blocked content warning */
.blocked-content-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px;
    margin: 10px;
    font-size: 12px;
    color: #856404;
    display: none;
}

.blocked-content-warning.show {
    display: block;
}

.blocked-content-warning strong {
    color: #d32f2f;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .msg-mod-actions {
        position: static;
        margin-top: 8px;
        justify-content: flex-end;
    }
    
    .floating-chat-msg:hover .msg-mod-actions {
        display: flex;
    }
    
    .quick-mod-modal {
        width: calc(100% - 40px);
        max-width: 400px;
    }
}