/* Chat Styles */
#chat-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-embed {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

.default-chat-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 20px;
    color: var(--text-color);
    background-color: var(--bg-color-dark);
}

.default-chat-message .chat-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.default-chat-message h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.default-chat-message p {
    margin-bottom: 10px;
    line-height: 1.5;
    max-width: 400px;
}

.default-chat-message i {
    color: var(--primary-color);
}

.chat-options {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.global-chat-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.global-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--primary-color-dark), var(--accent-color-dark));
}

.global-chat-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.global-chat-description {
    font-size: 12px;
    color: var(--text-color-muted);
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

/* Chat Controls */
.chat-controls {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #333;
    background: #1a1a1a;
}

.chat-control-btn {
    flex: 1;
    padding: 10px 15px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-control-btn:hover {
    background: #3a3a3a;
    border-color: #555;
}

.chat-control-btn.active {
    background: #9146ff;
    border-color: #9146ff;
    color: #fff;
}

/* Badges de chat */
.chat-badge {
    display: inline-block;
    font-size: 14px;
    margin-right: 2px;
    vertical-align: middle;
}

.chat-badge:hover {
    transform: scale(1.1);
    transition: transform 0.1s ease;
}

/* Amélioration des messages */
.message-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.username {
    font-weight: bold;
    margin-right: 4px;
}

.message-text {
    word-wrap: break-word;
    flex: 1;
}

.chat-control-btn.active:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

.chat-control-btn i {
    font-size: 16px;
}