* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.chat-bubble-enter {
    animation: bubbleEnter 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bubbleEnter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pulse-ring {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.typing-dots {
    display: inline-flex;
    align-items: center;
}

.typing-dots span {
    height: 4px;
    width: 4px;
    margin: 0 1px;
    background-color: #9CA3AF;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-scroll {
    scrollbar-width: thin;
    scrollbar-color: #E5E7EB transparent;
}

.chat-scroll::-webkit-scrollbar {
    width: 4px;
}

.chat-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.chat-scroll::-webkit-scrollbar-thumb {
    background-color: #E5E7EB;
    border-radius: 2px;
}

.chat-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #D1D5DB;
}

.gradient-bg {
    background: linear-gradient(135deg, #00b33d 0%, #00a037 100%);
}

.message-user {
    background: linear-gradient(135deg, #00b33d 0%, #00a037 100%);
}

.message-bot {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.shadow-chat {
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 8px -5px rgba(0, 0, 0, 0.04);
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Compact styles */
.compact-header {
    padding: 8px 12px;
}

.compact-messages {
    padding: 8px;
}

.compact-input {
    padding: 8px 12px;
}

.compact-message {
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.3;
}

.compact-avatar {
    width: 24px;
    height: 24px;
}

.compact-toggle {
    width: 44px;
    height: 44px;
}
#chat-box{
    z-index: 999999 !important;
}
#chat-toggle{
    z-index: 9999 !important;
}
.hidden {
    display: none !important;
}
#chat-box{
    height: 700px;
    width: 580px !important;
    max-height: 100vw !important;
    max-width: 90vw !important;
    border: solid 1px #f1f1f1;
}
#send-btn{
    height: 46px;
    width: 46px;
}
.text-xs{
    white-space: pre-wrap;
    font-size: 13px;
}
.max-w-xs{
    max-width: 85% !important;
}
#chat-icon{
    padding: 10px;
}
.message-bot a{
    color: #1e90ff;
}
.message-bot a:hover{
    color: #d0814b;
    text-decoration: underline !important;
}
.img-icon-hunonic-ai{
    width: 18px;
}
.img-icon-hunonic-ai-botname{
    border: solid 1px #e7e7e7;
    border-radius: 3px;
    width: 24px;
}

/* Suggested questions styling */
.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #f1f1f1;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.suggested-question {
    font-size: 12px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.suggested-question:hover {
    background-color: #e6f7ff;
    border-color: #00a037;
    color: #00a037;
}

.fade-out {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Textarea style */
#hunonic-chat-bot-textarea {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow-y: auto;
}

#hunonic-chat-bot-textarea:focus {
    border-color: #00a037;
    box-shadow: 0 0 0 2px rgba(0, 160, 55, 0.2);
}


#chat-toggle #b-chat-icon{
    width: 58px;
    height: 58px;
}
#chat-toggle #b-chat-icon #chat-icon{
    font-size: 26px;
}