#chatgpt-chatty-bot-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #0073aa;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    font-size: 24px;
}

#chatgpt-chatty-bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    font-size: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-sizing: border-box;
}

#chatgpt-chatty-bot-widget {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 10px;
    right: 65px;
    background-color: #f1f1f1;
    border-radius: 10px;
    width: 350px;
    height: 550px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

#chatgpt-chatty-bot-widget.expanded {
    width: 600px;
    height: 800px;
}

#chatgpt-chatty-bot-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    max-height: calc(100% - 70px);  /* Adjust height to accommodate the footer */
}

#chatgpt-chatty-bot-messages {
    padding: 10px;
    box-sizing: border-box;
}

#chatgpt-chatty-bot-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f1f1f1;
    border-top: 1px solid #ccc;
    width: 100%;
    flex-shrink: 0;
}

#chatgpt-chatty-bot-widget-input {
    border: 2px solid #0073aa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    font-family: Arial, sans-serif; /* Better font family for the input */
    font-size: 14px; /* Adjust font size */
}

#chatgpt-chatty-bot-send,
#chatgpt-chatty-bot-clear {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
}

#chatgpt-chatty-bot-toggle-size,
#chatgpt-chatty-bot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.user-message, .bot-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;  /* Decrease font size of the messages */
}

.user-message {
    background-color: #0073aa;
    color: white;
}

.bot-message {
    background-color: #f0f0f0;
    color: black;
    word-break: break-word; /* Ensure long words/URLs break nicely */
}

/* Style for Markdown-rendered elements */
.bot-message h1,
.bot-message h2,
.bot-message h3,
.bot-message h4,
.bot-message h5,
.bot-message h6 {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

.bot-message ul {
    list-style-type: disc;
    margin-left: 20px;
}

.bot-message code {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 4px;
    font-family: monospace;
}

.bot-message pre {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-left: 3px solid #f36d33;
    color: #666;
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 14px; /* Adjust font size */
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    display: block;
    word-wrap: break-word;
}
