/**
 * ==============================================
 * AI Concierge in iframe
 * ==============================================
 */

@font-face {
    font-family: Roboto Condensed;
    src: url(/static/client/fonts/RobotoCondensed-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: Roboto Condensed;
    src: url(/static/client/fonts/RobotoCondensed-Bold.ttf);
    font-weight: 700;
}

@font-face {
    font-family: Roboto Condensed;
    src: url(/static/client/fonts/RobotoCondensed-Light.ttf);
    font-weight: 300;
}

html {
    font-size: 90%;
    line-height: 1.2;
    font-family: Neuzeit, Arial, sans-serif;
}

body {
    background: transparent !important;
    border-radius: 10px;
}

.header {
    padding: 0;
    text-align: center;
    color: #c34840;
    font-family: Marcellus, serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1rem;
}

.concierge {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.chat__messages {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

.chat__message {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin: 10px;
    border-radius: 3px;
    font-size: 1.2rem;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
}

.dimmed {
    /*opacity: 0.7;*/
    opacity: 1;
}

.chat__message--teaser {
    align-self: flex-end;
    background: #ededed;
    color: #707070;
    border: 2px solid #a8a8a8;
    margin-top: 0;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .chat__message--teaser {
        margin-bottom: 10px;
    }
}

.chat__message--teaser:hover {
    background: #a8a8a8;
    color: white;
}

@media screen and (max-width: 768px) {
    .chat__messages > .chat__message--teaser:nth-child(n+4) {
        display: none;
    }
}

.chat__message--user {
    align-self: flex-end;
    border: 2px solid #dbc7b4;
    background-color: #fff8f2;
    color: #746455;
}

.chat__message--bot {
    position: relative;
    align-self: flex-start;
    background: linear-gradient(90deg, #a87e5a, #deaa78);
    /*border: 2px solid #a97f5c;
    background-color: #a97f5c;*/
    color: #fff;
}

.chat__message--links {
    align-self: flex-start;
    background: transparent;
    margin: 0;
    padding: 0 0 0 20px;
    font-size: 1.0rem;
}

.chat__message--bot a {
    color: white;
}

.chat__message--links a {
    color: white;
}

.chat__message--divider {
    width: 100%;
    height: 2px;
    /*background-color: rgb(122, 122, 217);*/
    margin: 25px 0;
}

.chat__input_wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 520px;
    padding: 10px 10px 30px 10px;
}

.chat__input {
    background: transparent;
    width: 100%;
    outline: 0;
    border-width: 0 0 2px;
    border-color: #493727;
    font-size: 1rem;
    color: #493727;
}

.chat__send {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    color: #c4484059;
}
.chat__send::before {
    font-family: 'Font Awesome 6 Pro';
    content: "\f1d8"; /* paper-plane */
    font-weight: 900; /* 'fa-solid' style */
}

.chat__send:hover {
    color: #c44840;
}

.chat__input:focus {
    border-color: #732b25;
}

.chat__input::placeholder {
    color: rgba(73, 55, 39, 0.56);
}

.recording-button {
    width: 40px;
    height: 48px;
    margin-right: 5px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Font Awesome 6 Pro';
    outline: none;
    color: #c4484059;
    background-color: #FFFFFF00;
    font-weight: 800;
    font-size: 18px;
}
.recording-button::before {
    content: '\f130'; /* FontAwesome unicode for 'microphone' icon */
}
.recording-button[data-recording-state="active"]::before {
    content: '\f04d'; /* Stop icon */
}
.recording-button:focus {
    border: 1px solid var(--primary-color);
}
.recording-button:hover {
    color: #c34840;
    outline: none;
}
.recording_off {
    /* just for the color of the recording button when no sound detected */
    color: var(--title-color);
    background-color: #ffffff;
}
.recording_max {
    /* just for the color of the recording button when max sound detected */
    color: #ffffff;
    background-color: var(--hover-color);
}

/**
 * ==============================================
 * Buttons Feedback & more
 * ==============================================
 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spin-around {
    animation: spin 2s infinite linear;
}

.feedback-icons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 0;
}

.feedback-icons .thumbs-up, .feedback-icons .thumbs-down, .feedback-icons .listen-summary, .feedback-icons .copy-clipboard {
    cursor: pointer;
    opacity: 0.7;
    background: transparent;
    border: none;
    /*color: black;*/
}

.feedback-icons .thumbs-up:hover, .feedback-icons .thumbs-down:hover, .feedback-icons .listen-summary:hover, .feedback-icons .copy-clipboard:hover {
    opacity: 1;
}

.invisible {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.thumbs-up::before {
    content: "\f164";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900; /* Solid style */
}

.thumbs-down::before {
    content: "\f165";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900; /* Solid style */
}

.feedback-modal {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f1f1f1;
    border: 1px solid #d2d2d2;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 10px;
}

.feedback-modal textarea {
    width: 250px;
    height: 150px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid rgb(228, 225, 225);
    font-size: 14px;
}

.feedback-buttons {
    display: flex;
    justify-content: space-between;
}

.feedback-modal button {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    background-color: #f4f4f4;
    border-radius: 5px;
}

.feedback-modal button:hover {
    background-color: #d9d9d9;
}

/**
 * ==============================================
 * Images
 * ==============================================
 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    cursor: pointer;
}

.popup__button--left {
    left: 10px;
}

.popup__button--right {
    right: 10px;
}

.popup__img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: pointer;
}


/**
 * ==============================================
 * Dot Flashing
 * ==============================================
 */
.dot {
    font-size: 0.6rem;
    margin-right: 5px;
}

.dot1 {
    animation: visibility1 3s linear infinite;
}

@keyframes visibility1 {
    0% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.dot2 {
    animation: visibility2 3s linear infinite;
}

@keyframes visibility2 {
    0% {
        opacity: 0;
    }
    21% {
        opacity: 0;
    }
    22% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.dot3 {
    animation: visibility3 3s linear infinite;
}

.listen-summary::before {
    content: "\f6a8";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900; /* Solid style */
}

/* Loading spinner icon */
.listen-summary.loading {
    opacity: 1 !important;
}
.listen-summary.loading:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
}
.listen-summary.loading::before {
    content: "\f110";
    font-weight: 900;
}

/* Stop icon */
.listen-summary.stop {
    opacity: 1 !important;
}
.listen-summary.stop:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
}
.listen-summary.stop::before {
    content: "\f04d";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
}
/* Clipboard icon */
.copy-clipboard::before {
    content: "\f328";
    font-family: "Font Awesome 6 Pro";
    font-weight: 400; /* Solid style */
}

.copy-clipboard:active {
    /* scale icon on click factor 1.2 with animation */
    transform: scale(1.2);
    transition: transform 0.2s;
}

.tooltip-element {
    background-color: #f9f9f9;
    border: 1px solid #dcdcdc;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    font-size: 12px;
    z-index: 1000; /* Ensure it appears above other elements */
    white-space: nowrap; /* Prevent text wrapping */
}

@keyframes visibility3 {
    0% {
        opacity: 0;
    }
    43% {
        opacity: 0;
    }
    44% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* larger device */
@media (min-width: 500px) {
    html {
        font-size: 90%;
    }

    .header {
        padding: 10px;
        font-size: 1.2rem;
    }

    .chat__messages {
        width: 80%;
    }

    .chat__message {
        width: 100%;
        max-width: 500px;
    }

    .chat__message--bot {
        max-width: 800px;
    }
}
