* {
    font-size: 100%;
    font-family: Arial;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
    font-size: 1em;
    background: white;
}

.parent-company-title {
    font-size: 1em;
    font-weight: bold;
}

.chat-container {
    width: 100%;
    max-width: 1000px;
    max-height: 500px;
    background: white;
    border-radius: 10px;

    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    /* Prevent container from overflowing vertically */
    overflow: hidden;
    /* Prevent manual scroll */
    margin-top: 20px;
    margin-bottom: 20px;
}

.messages {
    flex-grow: 1;
    overflow-y: auto;
    /* Ensure scrolling when content overflows */
    margin-bottom: 20px;
    margin-top: 20px;
}

.message {
    margin: 5px 0;
    padding: 10px;
    border-radius: 8px;
}

.user {
    align-self: flex-end;
    background: #1d6ca4;
    color: white;
    margin-top: 10px;
}

.bot {
    align-self: flex-start;
    background: #e0e0e0;
    padding: 10px;
}

.inner {
    align-self: flex-start;
    background: #e4e4e4;
    padding: 10px;
}

.input-container {
    display: flex;
    align-items: flex-start;
    /* Ensures vertical alignment of textarea and button */
}

pre {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    /* Line wraps to avoid horizontal scrolling */
}

textarea {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 1em;
    resize: none;
    /* Prevent manual resizing by the user */
    overflow-y: hidden;
    /* Hide the scrollbar initially */
    width: 100%;
    /* Ensures the width is fixed and flexible within its container */
    min-height: 30px;
    /* Initial height */
    max-height: 300px;
    /* Set the maximum height */
    overflow-y: auto;
    /* Enable vertical scrolling */
}

button {
    padding: 10px 20px;
    background: #1d6ca4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.history {
    width: calc(100% - 20px);
    /* Adjust to fit within its container */
    padding: 10px;
    background: #c2c2c2;
    color: black;
    border: None;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    margin-top: 10px;
    margin-right: 0;
    /* Prevents additional margin pushing it out */
}

.historybutton {
    width: 100%;
    padding: 10px;
    background: #b1b0b0;
    color: black;
    border: None;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    margin-top: 1px;
}

button:hover {
    background: #a7a6a6;
}

/* Styling for the customer dropdown */
.customer-dropdown {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
}

.customer-dropdown label {
    display: block;
    /* Makes the label a block element, so it sits above the select */
    margin-bottom: 0.5em;
    /* Adds space between the label and the dropdown */
}

#customer-select {
    width: 100%;
    /* Optional: makes the dropdown fill the available width */
    padding: 1em;
    /* Adds some padding for better appearance */
}

#creating-response {
    margin-bottom: 10px;
    color: #888;
}