﻿@font-face {
    font-family: "euclid";
    src: url('Euclid Circular A Regular.ttf')
}

.chat-app {
	max-height: var(--visual-viewport-height);
}

.container {
    display: flex;
    flex-direction: column;
    height: calc(100% - var(--banner-height));
    flex-grow: 2;
}

html {
    height: 100%;
}

body {
    margin: 0;
    background: white; /* The background will be transparent when iframed if this is excluded */
    height: 100%;
    display: flex;
    flex-direction: column;
    --banner-height: 173px; /* Controls banner height - also used in sizing logic elsewhere */
}

@media (max-width: 574px) {
    body {
        --banner-height: 120px;
    }
}

a {
    color: #0BBBEF;
}

a:visited {
	color: #020D42;
}

a:hover {
	color: #020D42;
}

.banner {
    display: flex;
    width: 100%; /* Ensure the banner spans the width of the container */
}

.side-block {
    flex: 1; /* This will allow the side blocks to grow and shrink */
    background: #341e66; /* Your purple color */
    /* Set a min and max width if you want to constrain their sizes */
    min-width: 100px; /* Example min-width */
    max-width: 300px; /* Example max-width */
}


.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #331f66;
}

.header-picture {
    width: auto;
    flex-shrink: 2;
}

.header-image {
    height: 100%;
    width: 100%;
    max-height: var(--banner-height);
}

.chat-container.withBanner {
    background: white;
}

.chat-container {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border: 2px solid #d1d5db;
    font-family: euclid, sans-serif, Calibri, Arial;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dialog-box {
    border-radius: 3px;
    flex-grow: 1;
    font-family: inherit;
    letter-spacing: .03rem;
    padding: 1rem;
    overflow: auto;
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .dialog-box ul, .dialog-box ol {
        padding-left: 20px;
    }
}

.message {
    align-items: center;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    flex-direction: row;
    padding: 10px 5px 10px;
}

    .message.bot {
        background: whitesmoke;
        border-radius: inherit;
        position: relative;
    }

.dialog-box > div:last-of-type {
    border-radius: 0 0 6px 6px;
}

.member-chatbot__chatbot-answer:empty {
    height: 11px;
    width: 32px;
    background-image: url("/img/chatbot-loader.gif");
    background-size: contain;
    margin-top: auto;
    margin-bottom: auto;
}

div.message > img {
    padding-right: 10px;
}

.message > p {
    border-radius: 5px;
    display: inline-flex;
    margin: 0;
    max-width: 70%; /* To prevent the message from taking full width */
    padding: 10px;
}

.avatar {
    height: auto;
    width: 30px;
    margin-left: 15px;
}

.member-chatbot__button-section {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: auto;
    padding: 24px;
}

@media (max-width: 992px) {
    .member-chatbot__button-section {
        display: unset;
        gap: unset;
    }
}

.member-chatbot__button-section[data-show-button-section="False"] {
    display: none;
}


.member-chatbot__prompt-suggestion-button {
    align-items: center;
    background-color: #fafafa;
    border: 1px solid #d9d9e3;
    border-radius: 12px;
    box-shadow: 0 0 transparent, 0 0 transparent, 0 0 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    justify-content: center;
    letter-spacing: .01rem;
    line-height: 1.5;
    min-height: 64px;
    padding: 0 16px;
}

@media (max-width: 992px) {
    .member-chatbot__prompt-suggestion-button:nth-of-type(2n) {
        display: none;
    }

    .member-chatbot__prompt-suggestion-button:nth-of-type(2n-1) {
        width: 100%;
    }

    .member-chatbot__prompt-suggestion-button:first-of-type {
        margin-bottom: 12px;
    }
}


.member-chatbot__button-heading {
    color: #333;
    font-weight: bolder;
}

.member-chatbot__button-subheading {
    border: 0 solid #d9d9e3;
    box-sizing: border-box;
}

.disclaimer-text {
    color: #757782;
    font-size: .875rem;
    padding-inline: 10px;
    text-align: center;
    margin: auto;
    padding-bottom: 6px;
    text-wrap: balance;
}

/*INPUT AREA SPECIFIC STYLES*/
.input-area {
    display: flex;
    flex-direction: row;
    padding: 10px;
    padding-top: 0;
    position: sticky;
}

.submission-button {
    position: absolute;
    right: 25px;
    top: calc(50% - 5px);
    height: 32px;
    width: 32px;
    transform: translateY(-50%);
    /*background-image: url("../img/arrow.svg"); */
    background-color: rgba(255, 255, 0, 0);
    border: none;
    cursor: pointer;
    padding-inline: 0;
}

@media (max-width: 574px) {
    .submission-button {
        top: calc(50% - 3px);
        height: 32px;
        width: 32px;
    }
}

.submission-button:hover {
    filter: brightness(130%);
}

.prompt-textarea {
    border: 1px solid #d1d5db;
    border-radius: 5px;
    flex-grow: 1;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .03rem;
    line-height: 1.5;
    resize: none;
    padding: 15px;
    padding-right: 54px;
}

#member-chatbot__prompt-form {
    margin-bottom: 0;
}

/*DEVICE SPECIFIC STYLES*/

@media (max-width: 574px) {

    .input-area {
        padding-bottom: 5px;
    }

    #prompt-textarea {
        padding: .5rem;
        padding-right: 42px;
    }
}


.mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;  
}

.mode-selection-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-family: euclid, sans-serif, Calibri, Arial;
}

    .mode-selection-box h2 {
        margin-top: 0;
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #020d42;
    }

    .mode-selection-box p {
        margin-bottom: 20px;
        font-size: 1rem;
    }

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    
}

.mode-button {
    padding: 20px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.exhibitor-button {
    background: #0BBBEF;
    color: white;
    font-family: euclid, sans-serif, Calibri, Arial;
}

.attendee-button {
    background: #4CAF50;
    color: white;
    font-family: euclid, sans-serif, Calibri, Arial;
}

.loading-overlay {
    display:none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #0D0D80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* THUMBS STYLES */
.thumb-controls {
    position: absolute;
    bottom: 6px;
    left: 48px; /* avatar (30px) + padding (≈18px) */
    display: flex;
    gap: 6px;
    margin-left: 10px;
}

.thumb {
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #9ca3af; /* gray-400 */
    transition: transform .1s ease-in-out, fill .2s ease-in-out;
}

    .thumb:hover {
        transform: scale(1.15);
    }

    .thumb.selected {
        fill: #0BBBEF; /* accent */
    }

/* MODAL STYLES */


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    margin: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: euclid, sans-serif, Calibri, Arial;
    animation: pop 0.2s ease-out;
}

.modal h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #020d42;
}

.modal textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
    font-family: inherit;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-buttons button {
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.modal-buttons button:first-child {
    background: #e5e7eb; /* gray-200 */
}

.modal-buttons button:last-child {
    background: #0BBBEF;
    color: #fff;
}

.icon-md-heavy {
    stroke-width: 2.5px;
    flex-shrink: 0;
    height: 18px;
    width: 18px;
    border-color: black;
}
.icon-md-heavy {
    color: #9ca3af;
    transition: transform .1s,color .2s
}

.icon-md-heavy:hover {
    transform: scale(1.15)
}

.icon-md-heavy.selected {
    color: #0BBBEF
}



@keyframes pop {
    from {
        transform: scale(0.96);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}