/* ============================================================
   GLOBAL CHAT BUBBLES (Event-Chat + Radio-Chat)
   ============================================================ */

.chat-box {
    width: 100%;
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Jede Nachricht */
.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

/* Eigene Nachrichten rechts */
.chat-message.me {
    flex-direction: row-reverse;
}

/* Avatar-Kreis */
.avatar {
    width: 38px;
    height: 38px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

/* Bubble */
.bubble {
    max-width: 70%;
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Eigene Bubble */
.chat-message.me .bubble {
    background: #d9ecff;
    border-color: #bcdcff;
}

/* Meta-Infos (Name + Zeit) */
.chat-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* Name des Senders */
.chat-user,
.chat-user-self {
    font-weight: bold;
    color: #333;
}

/* Nachrichtentext */
.chat-text {
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .bubble {
        max-width: 85%;
    }
}

.open-radio-chat {
    cursor: pointer;
    text-decoration: underline;
}