*{
    margin: 0;
     font-family: 'Open Sans', sans-serif;
}

body {
    background: radial-gradient(circle at top, rgba(111, 71, 255, 0.25), transparent 55%),
                radial-gradient(circle at 20% 20%, rgba(255, 47, 213, 0.2), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(60, 252, 209, 0.25), transparent 45%),
                #050014;
    color: #e3e1ff;
    min-height: 100vh;
}

.content-box {
    display: flex;
    height: 100%;
    overflow-x: hidden;
    min-width: 0;
}

.left-panel {
    height: 100%;
    flex: 0 0 25%;
    min-width: 0;
    background: linear-gradient(180deg, #060019 0%, #120528 45%, #1c0937 100%);
    color: #f4e7ff;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    height: 100%;
    border-right: 1px solid rgba(255, 47, 213, 0.25);
    box-shadow: 0 0 40px rgba(92, 36, 255, 0.25);
}

.leaderboard-wrapper {
    padding: 1%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
}
.right-panel {
    flex: 1 1 75%;
    min-width: 0;
    background: linear-gradient(180deg, rgba(8, 3, 35, 0.9) 0%, rgba(7, 8, 40, 0.9) 60%, rgba(8, 6, 28, 0.95) 100%);
    font-family: "Font Awesome 6 Free";
}

.left-panel > * {
    padding: 5px;
}

.chats-levels {
    flex-basis: 70%;

    display: flex;
    flex-direction: column;
}

.chats-levels i {
    margin-right: 10px;
}


.new-chat {
    padding: 1% 1%;
    border: 1px solid rgba(60, 252, 209, 0.4);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(14, 6, 45, 0.6);
    color: #e4fdf7;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 160ms ease;
}

.new-chat:hover{
    background: rgba(41, 7, 63, 0.85);
    border-color: rgba(255, 47, 213, 0.55);
    box-shadow: 0 0 18px rgba(255, 47, 213, 0.35);
    transform: translateX(2px);
}

.chat-history {
    flex-grow: 1;
}

/* right-panel */
.right-panel {
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
   /* justify-content: center; */

    gap: 1%;
    color: #e8e6ff;
    height: 100%;
    /*max-height: 800px;*/
    /* padding-bottom: 1%; */
    position: relative;
}

.right-panel > * {
    padding: 1%;
    min-width: 0;
}

.brand-name {
    font-size: 2em;
    font-weight: 600;
}

.functionalities {
    display: flex;
    justify-content: center;
    align-items: stretch;

    column-gap: 15px;
}

.functionalities > * {
    flex: 1 1 100%; /* make all flex items of equal width*/

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;

    row-gap: 15px;
}

.func-heading {
    width:80%;
    font-size: 15px;
    line-height: 40px;
    padding-top: 3%;
}

.functionalities > div > div{
    flex-grow: 1;
    text-align: center;
}

.functionalities > div > div:not(.func-heading){
    font-size: 12px;
    padding: 2% 2%;
    background: linear-gradient(135deg, rgba(20, 7, 57, 0.85), rgba(33, 9, 71, 0.95));
    border-radius: 8px;
    border: 1px solid rgba(255, 47, 213, 0.15);
    color: #dcd7ff;
    box-shadow: inset 0 0 20px rgba(92, 36, 255, 0.25);
}

.examples > div:not(.func-heading) {
    cursor: pointer;
}

.examples > div:not(.func-heading):hover{
    background: rgba(255, 47, 213, 0.15);
    border-color: rgba(255, 47, 213, 0.35);
}

.absolute {
    /**position: absolute;**/
    bottom: 20px;
}
.chat-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    row-gap: 10px;
}

.chat-history {
    width: 100%;
}

.chat-input-fixed {
    position: sticky;
    bottom: 0;
    padding: 18px 0 24px;
    background: linear-gradient(180deg, rgba(5, 2, 25, 0), rgba(5, 2, 25, 0.95));
    z-index: 10;
    width: 100%;
}

.input-box {
    border: 1px solid rgba(60, 252, 209, 0.3);
    border-radius: 12px;
    display: flex;
    margin: 0 10px;
    box-shadow: 0 0 25px rgba(92, 36, 255, 0.25);
    background: rgba(5, 2, 25, 0.9);
    width: calc(100% - 20px);
    min-height: 72px;
}

.input-box input[type="text"] {
    flex-grow: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    outline: none;
    border-radius: 12px 0 0 12px;
    background: transparent;
    color: #f9f7ff;
    font-size: 1.15rem;
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.input-box i {
    flex-basis: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3cfcd1;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.input-box i:hover {
    background-color: rgba(255, 47, 213, 0.15);
    color: #ff2fd5;
}

.disclaimer {
    font-size: 11px;
    text-align: center;
    color: #a8a2ff;
}

.chat-bubble {
    background: linear-gradient(135deg, rgba(255, 47, 213, 0.35), rgba(92, 36, 255, 0.5)) !important;
    color: #f9f6ff !important;
    border: 1px solid rgba(255, 47, 213, 0.35);
    box-shadow: 0 10px 30px rgba(7, 1, 32, 0.6);
}

.chat.chat-start .chat-bubble {
    background: linear-gradient(135deg, rgba(60, 252, 209, 0.35), rgba(92, 36, 255, 0.35)) !important;
    border-color: rgba(60, 252, 209, 0.35);
    color: #dffef5 !important;
}

.chat-bubble pre,
.chat-bubble code {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(5, 2, 25, 0.85);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #f8f8f2;
    border: 1px solid rgba(60, 252, 209, 0.25);
}

.chat-bubble code {
    display: inline;
    padding: 0.2rem 0.4rem;
    margin: 0;
}

.chatbox {
    height: 80%;/* Set a fixed height */
    overflow-y: scroll;
   /* transform: rotate(180deg);
  direction: rtl;
  text-align: left;*/
    /*flex-direction: column-reverse;*/
}
.scroller {
    overflow: scroll;
    height: 60%;
    display: flex;
    flex-direction: column-reverse;
    overflow-anchor: auto !important; /*  See https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor */
}

.scroller .scroller-content .item {
    height: 20px;
    transform: translateZ(0); /* fixes a bug in Safari iOS where the scroller doesn't update */
}
img[alt=faq_image] {  display: block;
          margin-top: 2%;
          margin-left: auto;
          margin-right: auto;
          width: 50%;
           height: 30%;}

a:link,
a:visited,
a:hover,
a:active {
  color: #3cfcd1;
}

a:link, a:visited {
  text-decoration: none;
}

.level-menu {
    padding: 5% !important;
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  [class*="level-menu"] {
     padding: 10% !important;
  }
}

.htmx-indicator{
    opacity:0;
    transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator{
    opacity:1;
}
.htmx-request.htmx-indicator{
    opacity:1;
}

textbox-icons {
 font-size: 1.5rem
}

.leaderboard-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.leaderboard-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(60, 252, 209, 0.4);
    table-layout: auto;
}

.leaderboard-table th {
    color: #ffffff;
    border: 1px solid rgba(60, 252, 209, 0.4);
    padding: 12px;
    text-align: left;
    background: rgba(5, 2, 25, 0.6);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.leaderboard-table td {
    color: #ffffff;
    border: 1px solid rgba(60, 252, 209, 0.4);
    padding: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.leaderboard-table tbody tr:hover {
    background: rgba(60, 252, 209, 0.1);
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.right-panel .form-control .label .label-text,
.right-panel .form-control .label .label-text-alt {
    color: #ffffff;
}

.right-panel .form-control .input {
    color: #ffffff;
    background: rgba(5, 2, 25, 0.6);
    border-color: rgba(60, 252, 209, 0.4);
}

.right-panel .form-control .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
