/* Bia Morabeza Web Client - Premium Design */

#bia-chat-container {
    margin: 40px 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 550px;
    clear: both;
}

#bia-chat-header {
    background: #004a87 !important; /* Força cor institucional */
    color: white !important;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#bia-chat-header .agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#bia-chat-header .agent-avatar {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004a87;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#bia-chat-header .agent-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff !important;
}

#bia-chat-header .status-tag {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

#bia-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8fbff;
}

.bia-msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    animation: biaFadeIn 0.3s ease-out;
}

@keyframes biaFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bia-msg.user {
    align-self: flex-end;
    background: #004a87;
    color: white;
    border-bottom-right-radius: 4px;
}

.bia-msg.assistant {
    align-self: flex-start;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #edf2f7;
    border-bottom-left-radius: 4px;
}

#bia-chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #edf2f7;
    display: flex;
    gap: 12px;
    align-items: center;
}

#bia-chat-input {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 28px;
    padding: 12px 20px;
    outline: none;
    font-size: 15px;
}

#bia-chat-send {
    background: #004a87;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bia-chat-send svg {
    width: 20px;
    height: 20px;
}

/* Typing Indicator */
.bia-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 18px;
    background: #eee;
    border-radius: 18px;
}

.bia-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: biaBlink 1.4s infinite both;
}

.bia-dot:nth-child(2) { animation-delay: 0.2s; }
.bia-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes biaBlink {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}
