/* template from Uiverse.io by ahmed150up */ 
/* and from Uiverse.io by Yaya12085 */ 
/* From Uiverse.io by Yaya12085 */ 
.column-selectors {
    display: none;
    align-items: center;  
}

.ss-main {
    height: 25px;
    font-size: 15px;
    width:250px;
    margin: 10px;
}

label {
    margin: 10px;
}

.selector {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.message-content {
    position: relative;
    padding-bottom: 36px;
}

.message-tools {
    position: absolute;
    bottom: 5px;
    right: 8px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.download-button,
.graph-button,
.refresh-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.download-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.graph-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.refresh-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.download-button:hover::after {
    content: "Download CSV";
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #333;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    z-index: 10;
}

.graph-button:hover::after {
    content: "Graph data";
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #333;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    z-index: 10;
}

.refresh-button:hover::after {
    content: "Refresh for different result";
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #333;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    z-index: 10;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
}

.tabbed-ui {
    border-radius: 5px;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;    
    width: 60vw;
    height: 95vh;
    padding: 10px;
}

.tab-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.5rem;
    background-color: #ddd;
    box-sizing: border-box;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    /* padding: 0.25rem; */
    width: 300px;
    font-size: 14px;
}

.tab-inputs .tab {
    flex: 1 1 auto;
    text-align: center;
}

.tab-inputs .tab input {
    display: none;
}

.tab-inputs .tab .name {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: none;
    padding: .5rem 0;
    /* color: rgba(51, 65, 85, 1); */
    transition: all .15s ease-in-out;
}

.tab-inputs .tab input:checked + .name {
    background-color: #fff;
    font-weight: 600;
}

.chat-title {
    background-color: #fff;
    /* border: 1px solid #ccc; */
    /* border-radius: 5px; */
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 10px;
}

.chat-header-title {
    text-align: center;
    font-size: 20px;
    font-weight: 1000;
}

.card {
    background-color: #fff;
    /* border: 1px solid #dddddd; */
    border-radius: 5px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    font-family: Arial, Helvetica, sans-serif;
}

.chat-header {
    background-color: #BF5700;
    color: #dddddd;
    padding: 10px;
    font-size: 15px;
    font-weight: lighter;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.chat-window {
    height: 75%;
    overflow-y: scroll;
}

.message-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.message-input {
    flex: 1;
    border: none;
    border-radius: 5px;
    outline: none;
    padding: 8px;
    font-size: 14px;
    background-color: #eca66c;
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;    
}

::placeholder {
    color: #eee;
}

.send-button {
    border: none;
    border-radius: 5px;
    outline: none;
    background-color: #333;
    color: #ccc;
    font-size: 14px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;    
}

.send-button:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}


.message-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    max-width: 100%;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

/* .message-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    word-wrap: break-word;
    white-space: normal;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 10px;
} */

.message-bubble {
  display: inline-block;
  max-width: 100%; 
  overflow-x: auto; 
  padding: 10px;
  /* background-color: #f2f2f2; */
  border-radius: 16px;
  word-wrap: break-word;
  box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 10px;
  white-space: normal;
}


.message.user .message-bubble {
    background-color: #eca66c;
    color: white;
    border-bottom-right-radius: 4px;
    text-align: right;
}

.message.bot .message-bubble {
    background-color: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 4px;
    text-align: left;
}

.chat-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    /* margin-top: 5px; */
    padding: 10px;
    flex-wrap: wrap;
}

.utility-button {
    background-color: #888;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.utility-button:hover {
    background-color: #ccc;
    color: black;
}

.link-button {
    line-height: normal;
}

.tabbed-content {
    width: 60vw;
    height: 70vh;
}