body{
    margin: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a97c50' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #ffedd8, #d8ffed);
    font-family: 'Baloo 2', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #6a4928;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z' fill='%23a97c50' fill-opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.chatbot-container {
    background-color: #fff9f0;
    border-radius: 2.5rem;
    box-shadow: 0 8px 32px rgba(169, 124, 80, 0.15), 
                inset 0 -4px 0 #c49b6d,
                0 -8px 20px rgba(255, 255, 255, 0.3);
    padding: 2rem;
    width: 90%;
    max-width: 450px; /* Aumentado para acomodar o mascote maior */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Estilos kawaii para o mascote da capivara */
.mascot-container {
    margin-bottom: 1rem;
    position: relative;
    width: 230px; /* Aumentado para acomodar decorações */
    height: 230px; /* Aumentado para acomodar decorações */
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 6px 8px rgba(169, 124, 80, 0.3));
}

/* Sombra abaixo da capivara */
.mascot-container::before {
    content: "";
    position: absolute;
    width: 180px; /* Ajustado para o novo tamanho */
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(169, 124, 80, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -15px;
    left: 25px; /* Centralizado com o novo tamanho */
    border-radius: 50%;
    z-index: -1;
    /* Animação de pulsar sombra removida */
}

/* Elementos decorativos */
.decoration {
    position: absolute;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 40px; /* Tamanho base para os elementos */
    height: 40px;
}

.decoration:hover {
    transform: scale(1.2) rotate(5deg);
    filter: saturate(1.5) brightness(1.1);
}

.svg-decoration {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mato esquerdo */
.grass-left {
    width: 45px;
    height: 60px;
    bottom: 10px;
    left: -5px;
    transform: rotate(-15deg);
}

/* Flor direita */
.flower-right {
    width: 50px;
    height: 55px;
    bottom: 5px;
    right: 15px;
    transform: rotate(10deg);
}

/* Mato direito */
.grass-right {
    width: 40px;
    height: 55px;
    bottom: 20px;
    right: -5px;
    transform: scale(1.1) rotate(15deg);
}

/* Flor esquerda */
.flower-left {
    width: 45px;
    height: 50px;
    bottom: 25px;
    left: 10px;
    transform: rotate(-5deg);
}

/* Folha superior */
.leaf-top {
    width: 40px;
    height: 45px;
    top: 15px;
    right: 25px;
    transform: rotate(25deg);
}

/* Pequeno broto */
.sprout {
    width: 35px;
    height: 40px;
    bottom: 15px;
    right: 50px;
    z-index: 2;
    transform: rotate(-5deg);
}

.mascot-gif {
    width: 180px; /* Tamanho aumentado da capivara */
    height: 180px; /* Altura fixa para garantir tamanho uniforme */
    border-radius: 15%; /* Reduzido de 50% (círculo) para 15% (cantos arredondados) */
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Animação de flutuação removida */
    object-fit: contain; /* Alterado de 'cover' para 'contain' para não cortar a imagem */
    background-color: rgba(255, 255, 255, 0.2); /* Fundo sutil para destacar o mascote */
    padding: 5px; /* Espaço interno para que o GIF tenha um pouco de respiro */
}

.mascot-gif:hover {
    transform: scale(1.05); /* Efeito de zoom mais sutil, sem rotação */
}

.mascot-gif:active {
    transform: scale(0.98);
}

/* Estilo para quando o mascote está atento a algum elemento decorativo */
.mascot-gif.attentive {
    filter: drop-shadow(0 6px 10px rgba(169, 124, 80, 0.5)) brightness(1.1);
    transition: all 0.3s ease;
}

/* Efeito de brilho sutíl ao redor do mascote quando interage com elementos */
.mascot-container:hover::after {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Bolhas decorativas */
.bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    filter: blur(1px);
    z-index: -1;
    animation: bubble-float 15s linear infinite;
}

.typing-indicator {
    font-style: italic;
    color: #997c5d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23997c5d' d='M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Zm4-9H8a1,1,0,0,0,0,2h8a1,1,0,0,0,0-2Z'/%3E%3C/svg%3E");
    animation: spin 2s linear infinite;
}

.title {
    color: #8c6239;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.7),
                 0px 4px 6px rgba(169, 124, 80, 0.2);
    position: relative;
    display: inline-block;
}

.title::after {
    content: "🌱";
    position: absolute;
    font-size: 0.8em;
    right: -25px;
    top: -10px;
    transform: rotate(15deg);
}

.chat-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    height: 240px;
    overflow-y: auto;
    padding: 1.2rem;
    text-align: left;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    border: 2px solid rgba(169, 124, 80, 0.2);
    box-shadow: 0 4px 15px rgba(169, 124, 80, 0.1), 
                inset 0 -2px 0 rgba(169, 124, 80, 0.1);
    position: relative;
    /* Fundo com padrão sutil de folhas */
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23a97c50' fill-opacity='0.03' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E"),
        linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
}

/* Estilização da barra de rolagem */
.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-track {
    background: rgba(255, 240, 220, 0.5);
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: rgba(169, 124, 80, 0.3);
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 124, 80, 0.5);
}

.bot-message, .user-message {
    margin-bottom: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 1.2rem;
    max-width: 85%;
    word-wrap: break-word;
    position: relative;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    border: 1px solid rgba(169, 124, 80, 0.15);
}

.bot-message {
    background: linear-gradient(45deg, #FFE8D6, #F8FFE5);
    border-bottom-left-radius: 0.3rem;
    align-self: flex-start;
    float: left;
    clear: both;
    position: relative;
    border: 1px solid rgba(169, 124, 80, 0.2);
    box-shadow: 0 2px 8px rgba(169, 124, 80, 0.1);
}

.bot-message::before {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: -0.2rem;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F8FFE5' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M6 14l3 3v5h6v-5l3-3V9H6v5z' fill='%23F8FFE5' stroke='rgba(169, 124, 80, 0.15)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.8;
}

.bot-message::after {
    content: "🌸";
    position: absolute;
    top: -0.8rem;
    right: -0.2rem;
    font-size: 0.8rem;
    transform: rotate(15deg);
    opacity: 0.7;
}

/* Adiciona pequenas flores alternadas às mensagens do bot */
.bot-message:nth-child(odd)::after {
    content: "🌼";
}

.bot-message:nth-child(3n)::after {
    content: "🍃";
}

.bot-message:nth-child(4n)::after {
    content: "✨";
}

.user-message {
    background: linear-gradient(45deg, #E6F4FF, #EEFFFD);
    border-bottom-right-radius: 0.3rem;
    align-self: flex-end;
    float: right;
    clear: both;
    position: relative;
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.1);
}

.user-message::before {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    right: -0.2rem;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23EEFFFD' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M18 14l-3 3v5H9v-5l-3-3V9h12z' fill='%23EEFFFD' stroke='rgba(100, 149, 237, 0.15)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.8;
}

/* Adiciona pequenos sparkles às mensagens do usuário */
.user-message::after {
    content: "✨";
    position: absolute;
    top: -0.8rem;
    left: -0.2rem;
    font-size: 0.8rem;
    transform: rotate(-15deg);
    opacity: 0.7;
}

/* Adiciona pequenas variações às mensagens do usuário */
.user-message:nth-child(odd)::after {
    content: "💭";
}

.user-message:nth-child(3n)::after {
    content: "🍀";
}

.user-message:nth-child(4n)::after {
    content: "💌";
}

#chat-form {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0.5rem 0;
}

#user-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 1.5rem;
    border: 2px solid rgba(169, 124, 80, 0.2);
    background-color: white;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    color: #6a4928;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(169, 124, 80, 0.08), 
                inset 0 2px 3px rgba(255, 255, 255, 0.8);
}

#user-input:hover {
    border-color: rgba(169, 124, 80, 0.3);
    box-shadow: 0 4px 12px rgba(169, 124, 80, 0.12);
}

#user-input:focus {
    border-color: rgba(169, 124, 80, 0.4);
    box-shadow: 0 4px 15px rgba(169, 124, 80, 0.15),
                0 0 0 3px rgba(255, 195, 161, 0.3);
}

#user-input::placeholder {
    color: #b09782;
    opacity: 0.7;
}

/* Adiciona um pequeno elemento fofo no campo de input */
#user-input:focus::before {
    content: "✨";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#chat-form button {
    margin-left: 0.8rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(to bottom, #FFC3A1, #FFAD84);
    border: none;
    border-radius: 1.5rem;
    color: #6a4928;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #FFAD84,
                0 5px 5px rgba(169, 124, 80, 0.15);
    position: relative;
    overflow: hidden;
    font-weight: bold;
}

/* Adiciona brilho decorativo ao botão */
#chat-form button::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF' opacity='0.4' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 0;
    transform: rotate(-25deg);
    opacity: 0.4;
    animation: shimmer 3s infinite ease-in-out;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(-25deg) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: rotate(-25deg) scale(1.1);
    }
}

#chat-form button:hover {
    background: linear-gradient(to bottom, #ffceaf, #ffb994);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #FFAD84,
                0 7px 10px rgba(169, 124, 80, 0.2);
}

#chat-form button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #FFAD84,
                0 3px 5px rgba(169, 124, 80, 0.1);
}