﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.chat-wrapper {
    height: 94vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #007bff;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.chat-footer {
    border-top: 1px solid #ccc;
    padding: 1rem;
    background-color: #fff;
    direction: rtl;
}

.chat-bubble {
    max-width: 70%;
    padding: .5rem .75rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
    animation: fadeIn 0.3s ease-in;
}

.chat-agent {
    background-color: #d1e7dd;
    align-self: flex-end;
}

.chat-client {
    background-color: #e2e3e5;
    align-self: flex-start;
}

.chat-meta {
    font-size: 13px;
}

.chat-time {
    font-size: 10px;
    text-align: left;
    color: gray;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    font-size: 13px;
    color: #6c757d;
    margin-top: 0.5rem; /* فاصله با باکس تایپ */
    padding-right: 0.5rem; /* کمی فاصله از راست */
    animation: fadeIn 0.3s ease-in;
}


.link-primary {
    color: #0d6efd;
    text-decoration: none;
}

    .link-primary:hover {
        text-decoration: underline;
    }


a.text-primary:hover {
    text-decoration: underline;
}

img {
    border: 1px solid #ccc;
    padding: 2px;
}