@import './_variables.css';
@import './_colors.css';
@import './_fonts.css';
@import './transitions.css';
@import './animations.css';
@import './buttons.css';
@import "./chat_history.css";

body,
html {
    font-family: 'century-regular', sans-serif;
}

/*.avatar-layout {*/
/*    font-family: 'striker_personal', sans-serif;*/
/*}*/

.end-3 {
    inset-inline-end: .75rem;
}

li {
    list-style-type: square;
    margin-left: 30px;
    padding: 2px;
}

.agent-card {
    border-radius: 14px;

    .card-body {
        padding: 12px;
        overflow: hidden;
        height: 500px;
    }

    .card-footer {
        padding: 12px;
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }
}

/* button. {

} */

.select-languages-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.select-lang-btn {
    background: url("../image/bg_language.svg") center no-repeat;
    background-size: cover;
    /*background: linear-gradient(90deg, oklch(77.098% 0.12977 182.887 / 0.884), oklch(58.156% 0.12922 250.79 / 0.863));*/
    color: white;
    border: none;
    /*border: 1px solid red;*/
    aspect-ratio: 1;
    /*padding: 0.4rem 1rem;*/
    padding-top: 20px;
    padding-inline: 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: unset;
    min-height: auto;
    position: relative;
    overflow: visible;
    /*border-radius: 9999px;*/
    white-space: nowrap;
    outline: none;
    width: 100%;
    min-width: max-content;

    .lang-btn-prefix {
        text-transform: uppercase;
        font-size: 28px;
        line-height: 30px;
        font-family: 'striker_personal', sans-serif;
    }

    .lang-full-name {
        font-size: 12px;
        font-weight: normal;
    }

    &:active {
        transform: scale(0.98);
        transition: scale 0.2s ease-in-out;
    }
}

.absolute-bg, .fixed-bg {
    position: absolute;
    inset: 0;
    z-index: -1;

    &.fixed-bg {
        position: fixed;
    }

    video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.agent-configuration-left-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    max-width: 50%;
    padding-left: 40px;
    padding-top: 115px;
    padding-bottom: 100px;
    color: #676769;

    .agent-left-title {
        font-family: 'striker_personal', sans-serif;
        font-size: 40px;
        line-height: 40px;
        font-weight: 500;
        margin-bottom: 12px;
        /*text-transform: uppercase;*/
        color: #676769;
    }

    .agent-left-subtitle {
        font-size: 18px;
        margin-bottom: 0;
    }
}

.text-sm {
    font-size: 14px;
}

.text-lg {
    font-size: 18px;
}

.text-balance {
    text-wrap: balance;
}

.chat-control {
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bs-gray-700);

    div:first-child {
        flex-grow: 1;

        label {
            font-size: 12px;
            color: var(--bs-gray-800);
            font-weight: bold;
        }

        input {
            font-size: 14px;
            /*color: var(--bs-gray-800);*/
            padding-inline: 0;
            background-color: transparent;
            outline: none;
            border: none;
            margin-top: -10px;

            &:focus {
                outline: none !important;
                background-color: transparent !important;
                border: none !important;
                box-shadow: 0 0 transparent;
            }
        }
    }

    button {
        padding: 0;
        border: none;
        background: transparent;

        &:hover {
            scale: 1.05;
        }
    }
}

.tooltip-white {
    --bs-tooltip-bg: #EDEDEDFF;
    --bs-tooltip-color: #000;
    /*--bs-tooltip-border: var(--bs-gray-400);*/
    --bs-tooltip-border: none;

    .tooltip-inner {
        border: 1px solid var(--bs-tooltip-border);
    }

    .tooltip-arrow {
        .bs-tooltip-top &:before {
            border-top-color: var(--bs-gray-300) !important;
        }

        .bs-tooltip-bottom &:before {
            border-bottom-color: var(--bs-gray-300) !important;
        }
    }
}

.tooltip-inner {
    font-size: 12px;
    line-height: 16px;
}

.tooltip-sm {
    .tooltip-inner {
        font-size: 12px;
        line-height: 16px;
        padding: 8px;
    }
}

.avatar-loading-messages {
    --border-radius: 30px;
    position: relative;
    border-radius: var(--border-radius);
    /*background: rgba(255, 255, 255, 0.38);*/
    background: linear-gradient(90deg, rgba(177, 240, 242, 0.29), rgba(255, 255, 255, 0.38));
    z-index: 2000;
    padding: 30px;
    overflow: visible;
    width: 100%;
    min-height: 150px;
    display: flex;
    gap: 16px;

    &::after, &::before {
        --angle: 0deg;
        content: '';
        box-sizing: content-box;
        border-radius: var(--border-radius);
        position: absolute;
        inset: 0;
        z-index: -1;
        padding: 4px;
        background-image: conic-gradient(from var(--angle), transparent 20%, #9579F2, #52C3C6);
        animation: 3s animate-spinner-border linear infinite;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        opacity: .5;
    }

    &::before {
        filter: blur(1.5rem);
        opacity: 0.5;
    }

    .loading-message {
        font-size: 17px;
        line-height: 20px;
        flex-grow: 1;
        text-wrap: pretty;
    }

    .avatar-loading-message-icon {
        background: url("../image/ai_stars.gif") no-repeat center;
        background-size: contain;
        /*background-size: ;*/
        width: 70px;
        aspect-ratio: 1;
        /*border: 1px solid red;*/
        flex-shrink: 0;
    }
}

.remaining-time {
    overflow: hidden;
    position: absolute;
    top: -65px;
    right: 10px;
    z-index: 10;
    border-radius: 999px;
    display: flex;
    align-items: stretch;
    padding: 0;
    /*gap: 8px;*/
    color: var(--bs-gray-200);
    font-weight: normal;
    font-size: 14px;
    height: 30px;
    background-color: rgba(33, 37, 41, 0.76);

    span {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .remaining-time-icon {
        background-color: var(--bs-gray-900);
        padding-inline: 6px;

        img {
            width: 20px;
            aspect-ratio: 1;
        }

        margin-right: 6px;
    }

    .remaining-time-timer {
        padding-right: 4px;
        /*border: 1px solid red;*/
        width: 50px;
    }
}

.access-code-container {
    .access-error-message {
        text-wrap: pretty;
    }

    .access-code-help {
        margin-top: 12px;

        a {
            font-weight: 600;
        }
    }
}

.avatar-page-title-container {
    font-size: 30px;
}

.no-credits-message-container {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 10;
    --font-size: 16px;
    font-size: var(--font-size);

    .no-credits-message-inner {
        background: rgba(255, 255, 255, 0.95);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        /*text-align: center;*/
        text-wrap: pretty;
        width: 40%;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .no-credits-title {
        color: var(--bs-gray-700);
        font-size: var(--font-size);
        font-weight: bold;
        white-space: pre-line;
    }

    .no-credits-content {
        white-space: pre-line;
        font-size: 0.9rem;
        text-wrap: pretty;
    }
}

.finished-message-container {
    padding: 20px;
    border-radius: 12px;
    text-wrap: pretty;
    width: 100%;
    white-space: pre-line;

    &.timeout {
        .finished-message-button {
            display: none;
        }
    }

    .finished-message-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .finished-content {
        font-size: 24px;
    }
}