/* * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: "Roboto", sans-serif;
      }
      body {
        height: 100vh;
        background: #f5f5f5;
        display: flex;
        justify-content: center;
        align-items: center;
      } */

/* #openChatBtn {
        padding: 12px 25px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: 0.3s;
      }
      #openChatBtn:hover {
        background: #222;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
      } */

.bot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
}

.bot-icon img {
    width: 35px;
    height: 35px;
}

.bot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Modal personalizado */
.ai-chat-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* maior que qualquer outro elemento */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 38, 61, 0.4);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ai-chat-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 80%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 38, 61, 0.2);
    transition: all 0.3s ease;
    z-index: 10000; /* garante que o conteúdo fique acima do modal escuro */
}

.ai-chat-content.expanded {
    width: 98%;
    height: 95%;
    border-radius: 8px;
}

.ai-chat-header {
    padding: 16px 20px;
    background: #00263d;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 38, 61, 0.2);
}

.ai-chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: 8px;
    transition: 0.3s;
}
.ai-chat-header button:hover {
    opacity: 0.7;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
}

.ai-message {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 20px;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.2s;
}

.ai-message.user {
    background: #00263d;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 38, 61, 0.2);
}

.ai-message.bot {
    background: #e0e0e0;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 38, 61, 0.2);
}

.ai-chat-input {
    display: flex;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.ai-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.ai-chat-input input:focus {
    border-color: #00263d;
    box-shadow: 0 0 6px rgba(0, 38, 61, 0.1);
}

.ai-chat-input button {
    padding: 12px 20px;
    margin-left: 12px;
    border: none;
    background: #00263d;
    color: #fff;
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 38, 61, 0.2);
}

.ai-chat-input button:hover {
    background: #222;
    box-shadow: 0 4px 12px rgba(0, 38, 61, 0.4);
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

@media (max-width: 600px) {
    .ai-chat-content {
        width: 95%;
        height: 85%;
        border-radius: 10px;
    }
    .ai-chat-content.expanded {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
