/* Live Chat CSS */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom Scrollbar for Chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.chat-msg {
    word-break: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg .time {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-right: 0.3rem;
}

.chat-msg .author {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 0.3rem;
}

.chat-msg.admin-msg .author {
    color: var(--accent);
}

.chat-msg .text {
    color: #e2e8f0;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-input-group {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-btn:hover {
    background: var(--accent-hover);
}

.chat-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}
