/* /var/www/html/css/chat-moderation.css */

/* Текст продолжает строку после ника; иконки идут после текста */
.msg-body {
    display: inline;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.msg-body > .msg-text {
    display: inline;
}

.msg-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Иконки невидимы, но занимают место и кликабельны.
   Проявляются только при наведении на саму иконку. */
.msg-act {
    background: transparent;
    border: 0;
    padding: 2px 3px;
    margin: 0;
    color: #808890;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, color .15s;
}
.msg-act:hover,
.msg-act:focus-visible {
    opacity: 1;
}
.msg-act[data-act="report"]:hover { color: #ffa500; }
.msg-act.msg-act-danger:hover { color: #ff4d4d; }
.msg-act.reported { color: #ffa500; }
.msg-act:disabled { cursor: default; }

.msg-deleted .msg-text {
    color: #666 !important;
    font-style: italic;
}

.msg-chat-warning {
    color: #ffa500;
    font-size: 11px;
    padding: 3px 6px;
    margin: 2px 0;
    border-left: 2px solid #ffa500;
    background: rgba(255,165,0,.06);
    word-break: break-word;
}

.chatmod-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.chatmod-overlay.show { display: flex; }

.chatmod-box {
    background: rgba(15,18,21,.96);
    border: 1px solid rgba(255,77,77,.3);
    border-radius: 10px;
    padding: 20px;
    width: 380px;
    max-width: 92%;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chatmod-title { color: #ff4d4d; font-weight: bold; font-size: 16px; text-align: center; }
.chatmod-quote {
    color: #b0b8c5;
    font-size: 12px;
    background: rgba(0,0,0,.3);
    border-left: 2px solid #ff4d4d;
    padding: 8px;
    max-height: 90px;
    overflow: auto;
    word-break: break-word;
    white-space: pre-wrap;
}
.chatmod-reason, .chatmod-comment {
    width: 100%;
    box-sizing: border-box;
    background: #0f1215;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
    font-size: 13px;
}
.chatmod-comment { min-height: 60px; resize: vertical; }
.chatmod-status { font-size: 12px; min-height: 14px; text-align: center; }
.chatmod-status.ok { color: #4caf50; }
.chatmod-status.err { color: #ff4d4d; }
.chatmod-buttons { display: flex; gap: 10px; justify-content: center; }
.chatmod-buttons button {
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    border: 2px solid #ff4d4d;
}
.chatmod-send { background: #ff4d4d; color: #fff; }
.chatmod-send:disabled { opacity: .5; cursor: default; }
.chatmod-cancel { background: transparent; color: #ff4d4d; }

@media (hover: none) {
    .msg-act { opacity: .35; }
}