/* Chatbot Box */
.chatbot-box {
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 15px 15px 0 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    position: fixed;
    bottom: -520px; /* Hidden below the screen */
    left: 20px; /* Left positioning */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: bottom 0.5s ease-in-out; /* Smooth rise-up effect */
}

/* Chatbot visible state */
.chatbot-box.visible {
    bottom: 20px; /* Position to show the chatbot */
}

/* Header */
.chatbot-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #2299aa;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.chatbot-header img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-color: white;
    border-radius: 100%;
}

.chatbot-title {
    flex-grow: 1;
}

.close {
    font-size: 20px;
    cursor: pointer;
}

/* Chatbot Messages */
.chatbot-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f0f0f0;
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-messages p {
    background: #e1ffc7;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    align-self: flex-start;
    
}

.chatbot-messages {
    height: 350px; /* Adjust the height as needed */
    overflow-y: auto; /* Enable vertical scrolling when needed */
    display: flex;
    flex-direction: column; /* Align messages vertically */
    
    padding: 10px; /* Optional padding for a clean look */
    scroll-behavior: smooth; /* Smooth scrolling for transitions */
    border: none; /* Optional border */
    box-sizing: border-box; /* Include padding in width/height */
    font-size: 15px;
}

/* Footer */
.chatbot-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    resize: none;
    height: 40px;
    margin-right: 10px;
}

.chatbot-input:focus {
    border-color: #128c7e;
    box-shadow: 0px 0px 5px rgba(18, 140, 126, 0.5);
}

.chatbot-send {
    background: #2299aa;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chatbot-send img {
    width: 30px;
    height: 30px;
    
}

.chatbot-send:hover {
    background: #075e54;
}

/* Hidden state */
.chatbot-box.hidden {
    bottom: -520px; /* Completely hidden below the screen */
}

/* Typing Indicator */

.typing-indicator {
    font-style: italic;
    color: #999;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.typing-indicator em {
    animation: blink 1s infinite step-end;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.beta-notice {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 1s ease-in-out;
}
.hidden {
    display: none;
}
.fade-out {
    opacity: 0;
}