html, body {
    height: 100%;
    margin: 0;
    background: #faf9f6;
    font-family: 'Segoe UI', sans-serif;
}
.layout-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.assistant-wrapper {
    width: 100%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
}
.assistant-header {
    background: linear-gradient(120deg, #ffdde1, #ee9ca7);
    padding: 20px;
    text-align: center;
}
.assistant-header h3 {
    margin: 0;
    font-weight: 600;
    color: #5a0035;
}
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-msg, .bot-msg {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    animation: fadeIn 0.3s ease-in-out;
}
.user-msg {
    background-color: #e1f7f5;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: #004f4f;
}
.bot-msg {
    background-color: #fff0f5;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #730047;
}
.chat-form {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    gap: 10px;
    background: #fff;
}
.chat-form input {
    flex: 1;
    border-radius: 12px;
}
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #fff0f5;
    border-radius: 15px;
    color: #730047;
    align-self: flex-start;
}
.dot-typing {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #730047;
    animation: blink 1.4s infinite both;
}
.dot-typing:nth-child(2) { animation-delay: 0.2s; }
.dot-typing:nth-child(3) { animation-delay: 0.4s; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}
.retry-btn {
    margin-top: 8px;
    font-size: 13px;
}
.sponsored-bar {
    background-color: #fff7f0;
    border-top: 1px solid #ffc107;
    padding: 10px 16px;
    font-size: 14px;
    color: #5f370e;
    position: sticky;
    bottom: 64px;
    z-index: 10;
}
.sponsored-bar a {
    color: #b34c00;
    font-weight: 600;
    text-decoration: underline;
}
.modal-header h5 {
    font-weight: 600;
    color: #730047;
}
.error {
    color: red;
    font-size: 13px;
}
.conversations-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Ensure input field is visible in mobile view */
@media (max-width: 768px) {
    .chat-container {
        padding-bottom: 60px; /* Adjust as needed */
    }

    .chat-input {
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 10;
    }
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
}
