@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.body-gpt {
    width: 100%;
    min-height: 100vh;
    background-color: linear-gradient(#F4F0FF, #DACDFF);
}
#chatbot-toggler{
    position: fixed;
    bottom: 30px;
    right:35px;
    border:none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    border-radius: 50%;
    background: linear-gradient(135deg, #004a99, #0077cc);
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#chatbot-toggler span{
    position: absolute;
    color: #fff;
}
.container-chatbox.show-chatbot #chatbot-toggler span{
    transform: rotate(90deg);

}
#chatbot-toggler span:last-child,
.container-chatbox.show-chatbot #chatbot-toggler span:first-child{
    opacity: 0;
}
.container-chatbox.show-chatbot #chatbot-toggler span:last-child{
    opacity: 1;
}
.chatbot-popup{
    position: fixed;
    opacity: 0;
    pointer-events: none;
    bottom:90px;
    right: 35px;
    width: 420px;
    transform: scale(0.2);
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    transform-origin: bottom right;
    box-shadow: 0 0 120px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
}
.container-chatbox.show-chatbot .chatbot-popup{
    opacity: 1;
     transform: scale(1);
    pointer-events: auto;
}

.chatbot-popup .chat-header{
    display: flex;
    padding: 15px 22px;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #004a99, #0077cc);
}

.chat-header .header-info{
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-info svg{
    height: 35px;
    width: 35px;
    padding: 6px;
    flex-shrink: 0;
    fill: #fff;
    background: linear-gradient(135deg, #004a99, #0077cc);
    border-radius: 50%;
}

.header-info .logo-text{
    color: #fff;
    font-size: 1.31rem;
    font-weight: 600;
}

.chat-header button {
    height: 40px;
    width: 40px;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.9rem;
    padding-top: 2px;
    border-radius: 50%;
    margin-right: -10px;
    background: none;
    transition: 0.2s ease;
}

.chat-header button:hover{
    background: linear-gradient(135deg, #004a99, #0077cc);
}

.chat-body{
    display: flex;
    flex-direction: column;
    height: 460px;
    margin-bottom: 82px;
    overflow-y: auto;
    padding: 25px 22px;
    scrollbar-width: thin;
    scrollbar-color: #DDD3F9 transparent;
}

.chat-body .message{
    display: flex;
    gap: 11px;
    align-items: center;
}
.chat-body .bot-message.error .message-text{
    color: #ff0000

}

.chat-body .bot-message svg{
    height: 35px;
    width: 35px;
    padding: 6px;
    flex-shrink: 0;
    fill: #fff;
    align-self: flex-end;
    background: linear-gradient(135deg, #004a99, #0077cc);
    border-radius: 50%;

}

.chat-body .message .message-text{
    padding: 12px 16px;
    max-width: 75%;
    word-wrap: break-word;
    white-space: pre-line;
    font-size: 0.95rem;
}

.chat-body .bot-message .message-text{
    background: #F6F2FF;
    border-radius: 13px 13px 13px 3px;
}

.chat-body .user-message{
    flex-direction: column;
    align-items: flex-end;
}

.chat-body .user-message .message-text{
    color: #fff;
    background: #03649d;
    border-radius: 13px 13px 3px 13px;
}

.chat-footer{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 15px 22px 20px;
}

.chat-footer .chat-form{
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    outline: 1px solid #CCCCE5;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
} 

.chat-footer .chat-form:focus-within{
    outline: 2px solid #009EFB;
}

.chat-form .message-input{
    border: none;
    outline: none;
    width: 100%;
    background: none;
    height: 47px;
    padding: 0 17px;
    font-size: 0.95rem;
}

.chat-form button{
    height: 35px;
    width: 32px;
    border: none;
    display: none;
    outline: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
    margin-right: 6px;
    border-radius: 50%;
    background: #009EFB;
    transition: 0.2s ease;
}

.chat-form button:hover{
    background: #03649d;
}

.chat-form .message-input:valid ~ button{
    display: block;

}

@media (max-width: 520px){
    #chatbot-toggler{
        right: 20px;
        bottom: 20px
    }

    .chatbot-popup{
        right:0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }
    .chatbot-popup .chat-header{
        padding: 12px 15px;
    }
    .chat-body{
        height: calc(90% -55px);
        padding: 25px 15px;
    }
    .chat-footer{
        padding: 10px 15px 15px;
    }
}/* Corrige sobreposição do calendário sobre o Chatbot */
#chatbot-toggler,
.container-chatbox,
.chatbot-popup {
  position: fixed !important;
  z-index: 9999 !important; /* Fica acima de qualquer componente, incluindo o FullCalendar */
}

/* Garante que o popup também não fique atrás de nada */
.chatbot-popup {
  z-index: 9998 !important;
}

