.chat-header {
    background: #075e54;
    padding: 12px 15px;
    border-radius: 15px 15px 0 0;
    color: white;
    display: flex;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-header h2 {
    margin: 0;
    font-size: 16px;
}

.status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25d366;
    animation: pulse 1.5s infinite;
}
.chat-box {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    /* background: linear-gradient(to bottom right, #f5f7fb, #e4ecf7); */
    background: #aaafb1;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbar styling */
.chat-box::-webkit-scrollbar {
    width: 6px;
}
.chat-box::-webkit-scrollbar-thumb {
    background: #c1c9d6;
    border-radius: 10px;
}

/* Message bubbles */
.message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-in-out;
}

/* User message (right side) */
.user {
    align-self: flex-end;
    background: #4facfe;
    color: white;
    border-bottom-right-radius: 5px;
}

/* Bot message (left side) */
.bot {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
}


.wa-input {
    display: flex;
    align-items: center;
    background: #e6e8eb;   
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 10px;
}

/* Input */
.wa-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 50px;
    background: transparent;
}

/* Placeholder */
.wa-input input::placeholder {
    color: black;
}

/* Send button */
.wa-input button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #25d366;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

/* Hover effect */
.wa-input button:hover {
    background: #1ebe5d;
    transform: scale(1.05);
}

.btn-terry {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}



.small-rams{
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.small-rams:hover {
    background: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.chat-wrapper {
    position: relative;
}

.chat-box {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    background: #f5f7fb;
    border-radius: 15px;
    position: relative; /* KEY: makes button stay inside */
}

.typing {
    display: inline-block;
    font-style: italic;
    color:  #0d6efd;
}

.typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background:  #0d6efd;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}
