#airole-chat-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: "Roboto", sans-serif;
}

#airole-chat-window {
    flex: 2;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    overflow-y: scroll;
    max-height: 40em;
}

#airole-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

#profiles-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gform_fields{
    grid-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    display: grid;
    grid-template-rows: repeat(auto-fill,auto);
    inline-size: 100%;
    grid-row-gap: var(--gf-form-gap-y);
    row-gap: var(--gf-form-gap-y);
}


.mrra-1f.x-text .x-text-content-text-primary {
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-right: calc(0.02em * -1);
    color: rgb(42,42,42);
  }

.gfield_description {
    font-size: smaller;
    line-height: 1;
    color: rgb(88, 94, 106);
    margin-top: 5px;
    margin-bottom: 3em;

}
.profile-selection {
    display: flex;
    gap: 0px;
}

.profile-selection select, .profile-selection input {
    width: 100%;
    padding: 8px;
    border: 1px solid #1e5670;
    border-radius: 4px;
    
}
.ginput_container_select{
    width: 100%;
    margin-bottom: 0;
    color: rgb(17, 35, 55);
    border-color: rgb(104, 110, 119);
    padding-top: .5em;
    padding-bottom: .5em;
    font-size: 14px;
}
#button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-button {
    flex: 1 1 calc(50% - 10px);
    padding: 10px;
    text-align: center;
    background-color: white;
    border: 1px solid #1e5670;
    cursor: pointer;
    border-radius: 4px;
}

.custom-button:hover {
    background-color: #1e5670;
    color: white;
}

.custom-button.selected {
    background-color: #1e5670;
    color: white;
    border-color: #1e5670;
}

#start-stop-buttons {
    display: flex;
    width: 100%;
    margin-top: 1em;
}

#start-stop-buttons button {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    border-radius: 0.35em;
    margin-right: calc(1em / 2);
    margin-left: calc(1em / 2);
}

#stop-chat {
    border-color: rgba(101, 48, 140, 0);
    background-color: rgba(101, 48, 140, 0);
    border-width: 0;
}
#stop-chat:hover {
    text-decoration: underline;
    color: #1e5670;
}

#start-chat {
    background-color: #65308C;
    color: white;
}

#start-stop-buttons button:hover {
    opacity: 0.8;
}

#airole-chat-output {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
}

.chat-bubble {
    width: 90%;
    font-family: "Roboto",sans-serif;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    max-width: 80%;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    position: relative;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    font-style: normal;
    letter-spacing: 0em;

}


.chat-bubble.left {
    background: #F3FAFB;;
    border: 2px solid #7EDEF1;
}

.chat-bubble.right {
    background: #F9F2FF;
    border: 2px solid #E9CBFF;
    align-self: flex-end;
}

.chat-icon {
    width: 1em;
    height: 1em;
    min-width: 30px;  /* Ensure the icon stays the correct size even in flex containers */
    min-height: 30px;  /* Ensure the icon stays the correct size even in flex containers */
}

.chat-bubble.left .chat-icon {
    border: 1px solid #1e5670;
    color:#1e5670;
}

.chat-bubble.right .chat-icon {
    border: 1px solid #3f2e87;
    color:#3f2e87;
}
.chat-icon.right {
    fill: #3f2e87;
}
.chat-name.right {
    align-self: flex-end;
    color:#3f2e87 !important;
    direction: rtl;
}
.chat-name.left {
    align-self: flex-start;
    color:#1e5670 !important; 
}
.chat-icon.left {
    fill: #1e5670;
}

.mrra-1g.x-text .x-graphic-icon {
font-size: 2em;
}

h6.x-text-content-text-primary {
    font-family: "Roboto",sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    margin-left: 0.5em;
    margin-right: 0.5em;
    color: unset;
    text-transform: unset;
    letter-spacing: unset;
    font-style: unset;

}

h5.x-text-content-text-primary {
    font-family: "Roboto",sans-serif;
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-right: calc(0.02em * -1);
    color: rgb(42,42,42);
    color: unset;
    text-transform: unset;
    letter-spacing: unset;
    font-style: unset;
}

.x-text-content {
    align-items: flex-end;
  }

.loader {
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    border-top: 6px solid #3F2F89;
    border-right: 6px solid #543EB6;
    border-bottom: 6px solid #A195DB;
    border-left: 6px solid #f5f4fc;
    width: 30px;
    margin-left: 50%;
    height: 30px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    visibility: hidden;
  }
  
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }