#chat-box {
    padding: 1rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #ffffff;
    border-radius: 12px;
    transition: background 0.3s ease;
    max-width: 806px;
    width: 100%;
    scroll-behavior: smooth;
    flex-grow: 1;
}

.chat-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    margin: 0 16px 124px 16px;
}

.chat-bubble {
    max-width: 72%;
    padding: 8px 16px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(5px);
    animation: fadeInBubble 0.35s forwards ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.chat-bubble.user {
    background-color: #f6eddd;
    color: #152639;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background-color: #1548871A;
    color: #152639;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    font-weight: 500;
}

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

/* Typing dots */
.typing-dots {
    display: inline-flex;
    margin-left: 6px;
    vertical-align: middle;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    margin: 0 2px;
    background-color: #152639;
    border-radius: 50%;
    display: inline-block;
    animation: blinkDot 1.2s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Venue card styling */
.venue-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin: 0.35rem 0;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.venue-card.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Input styling */
#chat-input {
    width: 100%;
    height: 100%;
    resize: none;
    border: none;
    font-size: 14px;
    background: none;
}

.chat-input-wrapper {
    max-width: 806px;
    width: 100%;
    padding: 32px 32px 16px 32px;
    box-shadow: 0px 16px 32px 0px #15488740;
    border-radius: 16px;
    background: #DEE5EE1A;
}

#chat-input:focus {
    box-shadow: none;
}

#chat-input::placeholder {
    color: #B7B7B3;
    font-weight: 500;
    font-size: 14px;
    padding-left: 16px;
}

.textarea-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.placeholder-icon {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.chat-button {
    background-color: #F5F5F3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.chat-button:hover {
    box-shadow: 0px 2px 8px 0px #15488740;
    transition: box-shadow 0.2s;
}

.badge {
    background-color: #F5F5F3;
    color: #B7B7B3;
    border-radius: 14px;
    padding: 4px 4px 4px 8px;
    font-family: 'Lexend', 'sans-serif';
    font-size: 10px;
    font-weight: 600;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
}

.version-badge {
    background-color: #A1B6CE;
    font-family: 'Lexend', 'sans-serif';
    font-size: 8px;
    color: #F5F5F3;
    padding: 2px 5px;
    border-radius: 14px;
}

/* Chat footer */
.card-footer {
    background-color: #f9f9f9;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

/* Smooth container transitions */
.card-body {
    transition: all 0.3s ease;
}

.khaia-icon {
    width: 138px;
    height: 138px;
}

.khaia-icon-small {
    width: 48px;
    height: 48px;
}

.welcome-text {
    font-size: 40px;
    font-weight: bold;
    color: #152639;
}

#welcome-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.rotate-45-cw {
    /* For standard browsers */
    transform: rotate(45deg);

    /* For older or specific browser compatibility (optional, but good practice) */
    -webkit-transform: rotate(45deg); /* Safari & Chrome */
    -moz-transform: rotate(45deg); /* Firefox */
    -o-transform: rotate(45deg); /* Opera */
    -ms-transform: rotate(45deg); /* IE 9 */
}
