﻿@import url(fontawesome.min.css);
@import url(regular.min.css);
@import url(solid.min.css);
@import url(https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css);

:root {
    --left-nav-width: 300px;
}

html, body {
    height: 100%;
    overflow: auto;
}

textarea {
    color: var(--bulma-body-color);
    font-size: var(--bulma-body-font-size);
    font-weight: var(--bulma-body-weight);
    line-height: var(--bulma-body-line-height);
    border: 0;
    background-color: var(--bulma-scheme-main-ter);
    border-radius: 5px;
    resize: none;
}

.platform-main {
    display: flex;
}

.left-nav {
    flex: 0.3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--left-nav-width);
    background-color: var(--bulma-body-background-color);
    transition: transform ease-in-out 0.5s;
    transform: translateX(0);
    z-index: 100;
}

    .left-nav .menu {
        padding: 1rem;
    }

main {
    margin-left: var(--left-nav-width);
    padding: 2rem !important;
}

html.hide-nav main {
    margin-left: 0;
}

html.hide-nav .left-nav {
    margin-left: 0;
    transform: translateX(calc(-1 * var(--left-nav-width)));
}

.left-nav .brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 24px;
    font-weight: lighter;
}

main:has(.fixed-layout) {
    padding: 0 !important;
    height: 100%;
    width: 100%;
}

.fixed-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 2rem;
    overflow: hidden;
    gap: 5px;
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: auto;
    flex: 1;
}

    .chat ol, .chat ul {
        margin-left: 2em;
        list-style-position: outside;
    }

.title {
    font-weight: lighter;
}

#next-interaction {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat .question {
    border-radius: 5px;
    background-color: var(--bulma-scheme-main-ter);
    padding: 10px;
}

.chat .response {
    margin-left: 4rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .chat .response .text {
        border-radius: 5px;
        background-color: var(--bulma-scheme-main-bis);
        padding: 10px;
    }

.message-metrics {
    border-radius: 5px;
    background-color: var(--bulma-scheme-main-bis);
    padding: 2px 8px;
    font-size: 12px;
    align-self: end;
    font-weight: 500;
    display: flex;
    gap: 10px;
}

.question-text {
    display: flex;
    background-color: var(--bulma-scheme-main-ter);
    height: 100px;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
}

    .question-text textarea {
        background-color: transparent;
        flex: 1;
        padding: 10px;
        align-self: stretch;
    }

textarea:focus-visible {
    outline: 0;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

::-webkit-scrollbar-corner {
    background: transparent
}

::-webkit-scrollbar-track {
    background-color: var(--bulma-border);
    box-shadow: 0 0 2px 0 var(--bulma-border) inset;
    border-radius: 4px
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: var(--bulma-text-weak)
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--bulma-text)
    }

    ::-webkit-scrollbar-thumb:active {
        background-color: var(--bulma-text)
    }


dt {
    font-weight: bold;
}

dd {
    display: block;
    margin-bottom: 1rem;
}

.validation-summary-valid {
    display: none;
}

.typing {
    position: relative;
    display: block;
    line-height: 20px;
    height: 10px;
    margin: 10px;
}

    .typing span {
        content: "";
        animation: blink 1.5s infinite;
        animation-fill-mode: both;
        height: 10px;
        width: 10px;
        background: #3b5998;
        position: absolute;
        left: 0;
        top: 0;
        border-radius: 50%;
        user-select: none;
    }

        .typing span:nth-child(2) {
            animation-delay: .2s;
            margin-left: 15px;
        }

        .typing span:nth-child(3) {
            animation-delay: .4s;
            margin-left: 30px;
        }

@keyframes blink {
    0% {
        opacity: .1;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .1;
    }
}

x-hstack, .hstack {
    display: flex;
    flex-direction: row;
    min-height: 0;
}

x-vstack, .vstack {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.flex {
    flex: 1;
}

.container {
    display: grid;
}

.gap {
    gap: 1rem;
}

.template-editor {
    resize: none;
    padding: 1rem;
    flex: 1;
}

.vote {
    cursor: pointer;
}

    .vote.upvote:hover {
        color: darkgreen;
    }

    .vote.downvote:hover {
        color: darkred;
    }

.chat-tile {
    display: block;
    width: 300px;
    height: 150px;
    background-color: rgba(240, 240, 240, 0.9);
    border-radius: 5px;
    padding: 1rem;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.chat-tile a {
    color: inherit;
    text-decoration: none;
}

.chat-tile-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.is-title {
    font-size: 120%;
    font-weight: 500;
    word-wrap: break-word;
}

.is-subtitle {
    margin-top: 0.5rem;
}

.is-menu {
    float: right;
}

.cost-column {
    text-align: right !important;
    font-variant-numeric: lining-nums;
}

.button-bar {
    margin: 0 0 2rem 0;
}

fieldset legend {
    color: var(--bulma-text);
    font-size: var(--bulma-size-5);
    font-weight: var(--bulma-weight-normal);
    line-height: 1.25;
    margin: 0 0 1rem -1rem;
}

fieldset {
    margin: 2rem 0 1rem 1rem;
}

.subtitle {
    margin-top: 2rem;
    margin-bottom: 0.5rem !important; 
}