/* Basic container styling for the title section */
#cb-title-section {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
}

.cb-chat-message p {
    padding-bottom: 0;  /* Removes bottom padding from <p> tags within chat messages */
    margin-bottom: 0;   /* Also set margin-bottom to 0 if necessary */
}

/* Styling for the logo image within the title section */
.cb-title-logo img {
    max-width: 100%;
    height: auto;
}

/* Styling for the typewriter text beneath the logo */
.cb-typewriter-text {
    color: #000;
    font-size: 24px;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    border-right: 2px solid black;
    white-space: nowrap;
    margin: 20px auto;
    display: inline-block;
    width: 0;
    animation: blink-caret .75s step-end infinite;
    min-height: 20px;
}

/* Keyframes for the blinking cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: black }
}

/* Chatbot container styling */
#cb-chatbot-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 180px;
    position: fixed;
    bottom: 5px;
    right: 5px;
    border: 2px solid #ff7b00;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    transform-origin: bottom right;
    background-color: rgba(255, 255, 255, 0.6); /* Set background color with opacity */
}

#cb-chatbot-tab {
    display: none;
    width: 50px;
    height: 50px;
    background-color: #ff7b00;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    line-height: 50px;
    z-index: 1000;
}

/* Chat area styling */
#cb-chat-area {
    flex: 1;
    overflow-y: auto;
    max-height: 80%;
    margin-bottom: 20px;
    padding: 0px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.6); /* Set background color with opacity */
}

/* Chat messages styling */
.cb-chat-message {
    margin: 0px 0;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cb-user-message {
    background-color: #eef9dd; /* Light green background */
    text-align: right;
    margin: 10px 5px 10px 30px;
}

.cb-bot-message {
    background-color: #ddeeff; /* Light blue background */
    text-align: left;
    padding: 2px;
    margin: 10px 30px 10px 5px;
}

/* Input area styling */
#cb-user-input {
    flex: 1;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ccc;  /* Optional, adds a border for better visual structure */
    box-sizing: border-box;  /* Makes sure padding and border are included in width/height */
    outline: none;  /* Removes the default focus outline, optional */
    margin-right: 10px;  /* Adds a little space between the input field and any adjacent elements */
}

#cb-input-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;  /* Adds padding inside the input area to prevent content from touching the edges */
}

#cb-toggle-button {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
    height: 20px;
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Informational section styling */
#cb-info-section {
    display: none;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 10px;
}

#cb-info-section h2 {
    margin: 0;
    font-size: 18px;
    color: #ff7b00;
}

#cb-info-section p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #333;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    #cb-chatbot-container, #cb-chatbot-tab {
        display: none !important; /* Hide chatbot on mobile */
    }
}

#cb-chatbot-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 180px;
    position: fixed;
    bottom: 5px;
    right: 5px;
    border: 2px solid #ff7b00;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    transform-origin: bottom right;
    background-color: rgba(255, 255, 255, 0.6); /* Set background color with opacity */
}

#cb-chatbot-container #cb-live-chat-button {
    align-self: flex-end; /* Right aligns the button within its container */
    white-space: nowrap;
    padding: 0px 20px;
    margin-top: 5px;
    background-color: transparent !important; /* Ensures background is transparent */
    color: #ff7b00; /* Text color */
    border: none; /* Removes the border */
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: none; /* Removes any box shadow */
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none; /* Removes underline from the anchor tag */
}

#cb-chatbot-container #cb-live-chat-button:hover {
    background-color: #ff7b00; /* Changes background on hover */
    color: black; /* Changes text color on hover */
    text-decoration: none; /* Ensures no underline on hover */
}