/*general items*/
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    direction: rtl;
    text-align: right;
    font-family: "migdalFont";
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

body .body-frame {
    width: 100%;
    height: 100%;
}

span,
p,
label,
select,
textarea {
    font-family: "migdalFont";
    /*-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;*/
    color: var(--blue-default);
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--blue-default);
}

p {
    padding: 0;
    margin: 0;
}

button {
    font-family: "migdalFont";
    display: block;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    text-rendering: auto;
    color: initial;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 0;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    padding: 0;
    color: #04285a;
}

ul {
    list-style: none;
    text-align: right;
    padding: 0;
    margin: 0;
}

span,
p,
input,
label,
textarea,
button,
select,
a,
icon {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

icon {
    display: inline-block;
}

/*************************************/
/*************************************/
/*************************************/

/* scrollbar */
/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--grey-default);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--grey-mid);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--grey-dark);
}

/* colors */
:root {
    --black-text: #41464c;

    --grey-dark: #a1a2a4;
    --grey-mid: rgb(233, 242, 250);
    --grey-light: #e7e7e78a;
    --grey-border: #e7e3e1;
    --grey-default: #eee;

    --blue-default: #0d2d6d;

    --gold: #a99168;

    --white: #fff;

    --green: #66ae3d;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* 
body {
	direction: rtl;
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
} */

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    height: max(85px, 10vh); /* Ensures minimum height of 85px while maintaining responsiveness */
    width: 100%;
    background-color: var(--blue-default);
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    height: max(85px, 10vh); /* Ensures minimum height of 85px while maintaining responsiveness */
    width: 100%;
    background-color: var(--blue-default);
}

.main-continer .logo {
    width: 60px;
    height: 72px;
    background: url(/static/imgs/logo-migdal@2x.png) center right no-repeat;
    position: absolute;
    right: 15px;
    /* top: 10px; */
    cursor: pointer;
}

#migdal-icon {
    margin-right: 15px;
    width: 40px;
}

.chat-container {
    /* width: 75%;
	float: right;
	height: 88vh; */
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 50px;
}

.start-chat-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 30px 0 0 0;
}

.start-chat-container h1 {
    font-size: 27px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--blue-default);
}

.input-wrapper {
    width: 100%;
    height: auto;
    max-width: 500px;
    position: relative;
    border-radius: 10px;
    margin: 20px 0 0 0;
}

.input-container {
    width: 500px;
    height: 100%;
    display: flex;
    position: relative;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid var(--blue-default);
    padding: 10px;
}

.input-container input {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--blue-default);
}

.input-container input::placeholder {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--blue-default);
    font-family: "migdalFont";
}

.input-container-start {
    bottom: 0;
    right: 25px;
    width: 100%;
    height: auto;
    display: flex;
    position: fixed;
    background-color: #fff;
    padding: 20px 10px;
    z-index: 5;
}

.input-container.disabled {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: default;
}

/* .input-container-start.disabled img {
    cursor: default;
} */

.input-container-start input {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--blue-default);
    font-family: "migdalFont";
}

.input-container-start input::placeholder {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--blue-default);
    font-family: "migdalFont";
}

.continue-chat-container {
    display: none;
    width: 100%;
    max-width: 1200px;
    position: relative;
}
/* 
.logo-container {
	mix-blend-mode: overlay;
	position: absolute;
	height: 85%;
	width: 25%;
	left: 0;
	background-repeat: no-repeat;
	background-size: contain;
	bottom: 0;
	background-image: url(/static/imgs/migdal_wb.png);
} */

.message-input-icon {
    width: 25px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    top: 25%;
    left: 14px;
    transform: rotate(-90deg);
}

.input-container-start .message-input-icon {
    top: 35%;
    right: 474px;
    left: unset;
}

.message-input {
    color: #1e285a;
    font-size: 18px;
    width: 90%;
    background-color: transparent;
    border: 0px;
    outline: none;
}

.message-input::placeholder {
    font-size: 18px;
    color: #1e285a;
}

/* Hide the scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-thumb {
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

.message-icon-before {
    display: none;
    position: absolute;
    top: 25px;
    padding-left: 15px;
    width: auto;
    height: 50px;
    border-left: 2px solid #1e285a;
    margin-left: 15px;
}

.chat-messages {
    display: flex;
    width: 100%;
    height: auto;
    /* height: 740px; */
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow-x: scroll;
    padding-bottom: 60px;
    /* border-bottom: 1px solid #ccc; */
}

.message-agent {
    max-width: 45%;
    text-align: center;
    font-size: 18px;
    position: relative;
    align-self: flex-start;
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-right: 20px;
    border-radius: 10px;
    background-color: var(--grey-mid);
    min-width: 150px;
    padding: 20px 30px 20px 20px;
    z-index: 5;
}

.message-agent.likes {
    padding: 20px 30px 40px 20px;
}

.message-agent-similar-questions {
    border: 0px;
    background-color: transparent;
}

.message-agent::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--blue-default);
    position: absolute;
    right: 11px;
    top: 31px;
    transform: translateY(-50%);
}

.message-agent.message-agent-similar-questions::before {
    top: 44px;
    content: "";
    /* background-color: var(--grey-mid); */
}

.messageAgentText {
    font-size: 18px;
    text-align: right;
    margin-right: 60px;
    padding-left: 20px;
    margin: 0;
    padding: 0;
}

.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    animation-fill-mode: both;
    animation: bblFadInOut 1.8s infinite ease-in-out;
}
.loader {
    color: var(--blue-default);
    font-size: 7px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
    /* margin-right: 100px; */
    top: -15px;
    right: 45%;
    /* margin: 8px 25px 10px 0px; */
}
.loader:before,
.loader:after {
    content: "";
    position: absolute;
    top: 0;
}
.loader:before {
    left: -3.5em;
    animation-delay: -0.32s;
}
.loader:after {
    left: 3.5em;
}

@keyframes bblFadInOut {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

.message-user {
    max-width: 45%;
    text-align: right;
    font-size: 18px;
    color: var(--blue-default);
    position: relative;
    align-self: flex-end;
    justify-content: center;
    margin-top: 8px;
    margin-left: 20px;
    padding: 20px 20px 20px 30px;
    border-radius: 10px;
    border-top-left-radius: 0;
    border: 0px;
    background-color: var(--grey-light);
    max-width: 930px;
}

.message-user::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--green);
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
}

.triangle-message-agent {
    position: absolute;
    border-radius: 3px;
    border-right: 17px solid transparent;
    border-top: 20px solid var(--grey-mid);
    border-top-left-radius: 0;
    height: 0;
    right: -10px;
    top: 0px;
    width: 0;
}

.triangle-message-user {
    position: absolute;
    border-left: 17px solid transparent;
    border-top: 21px solid var(--grey-light);
    border-top-left-radius: 7px;
    height: 0;
    left: -16px;
    top: 0px;
    width: 0px;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading dots */
.loading-dot {
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    margin: 0 15px;
    animation: loadingAnimation 1s infinite;
}

@keyframes loadingAnimation {
    0%,
    100% {
        transform: scale(1.5);
    }
    25%,
    75% {
        transform: scale(2.5);
    }
    50% {
        transform: scale(1);
    }
}

.header_links {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    left: 50px;
    width: fit-content;
    height: auto;
}

.header_links > div > a {
    color: var(--white);
    outline: 0;
    border: 0;
    text-decoration: none;
    text-indent: 8px;
    font-size: 18px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
}

.textarea-msg {
    position: relative;
    top: 0;
    font-size: 18px;
    text-align: right;
    margin: 0;
    padding: 0;
    width: 865px;
    border: 0px;
    outline: 0;
    resize: none;
    overflow: hidden;
    background-color: transparent;
}

.main_divs_qna {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 870px;
}

.div_qna {
    margin: 5px;
    /* max-height: 80px; */
    text-align: right;
}

.span_qna {
    display: inline-block;
    padding: 10px 25px;
    text-wrap: wrap;
    background-color: hsla(0, 0%, 90%, 6.13);
    border-radius: 7px;
    cursor: pointer;
    background-color: var(--blue-default);
    color: var(--white);
}

.message-icons-likes {
    position: absolute;
    display: flex;
    justify-content: center;
    left: 15px;
    bottom: 9px;
    width: 50px;
    gap: 5px;
}

.message-icons-likes > img {
    cursor: pointer;
    width: 20px;
    height: 20px;
    /* mix-blend-mode: color-burn; */
    margin: -2px 0 0 5px;
}

.message-icons-likes > img:last-child {
    margin: 0;
}

.icon_link {
    position: relative;
}

.icon_link::after {
    content: "";
    width: 1px;
    height: 80%;
    background-color: var(--white);
    position: absolute;
    top: 10%;
    left: -30px;
}

.icon_link::after:last-child {
    content: none;
}

/* beta */
.beta {
    width: auto;
    height: auto;
    background-color: var(--white);
    color: var(--blue-default);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 6px;
    padding: 8px 15px;
    position: absolute;
    left: 220px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup-container {
    position: relative;
    background-color: #fff;
    padding: 20px 20px 40px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 900px;
    margin: 100px auto;
    height: 70%;
}

.popup-content {
    line-height: 25px;
    overflow: scroll;
    height: 90%;
}

.confirm-btn {
    width: 95%;
    padding: 10px;
    background-color: var(--blue-default);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: absolute;
    bottom: 20px; /* Adjusted to provide some space from the bottom */
    left: 50%;
    transform: translateX(-50%); /* Center the button horizontally */
}

/* mobile */
@media only screen and (max-width: 600px) {
    .message-agent {
        max-width: 290px;
        margin: 35px 0 0 0;
        padding: 20px 30px 20px 0px;
    }

    .message-agent:first-child {
        margin: 15px 0 0 0;
    }

    .message-user {
        max-width: 280px;
        margin: 15px 0 0 0;
    }

    /* .messageAgentText {
        margin-top: 10px;
    } */

    .span_qna {
        font-size: 16px;
    }

    .main_divs_qna {
        width: 255px;
        gap: 7px;
    }

    .textarea-msg {
        width: 250px;
    }

    .logo-container {
        display: none;
    }

    .chat-messages {
        width: 100%;
        /* overflow-x: visible;
		overflow-y: auto; */
        height: unset;
        overflow: visible;
    }

    .input-container-start {
        right: unset;
        /* bottom: 4%; */
        /* width: 280px; */
    }
    .start-chat-container {
        width: auto;
        right: 28px;
        top: 180px;
    }

    .input-container {
        width: 100%;
        height: auto;
        position: relative;
        margin: 20px 0 0 0;
    }
    .header_links {
        width: auto;
    }
    .icon_link {
        display: none;
    }

    .chat-container {
        align-items: center;
        padding: 20px 20px 80px 20px;
    }

    .start-chat-container h1 {
        font-size: 22px;
    }

    .message-input {
        width: 100%;
    }

    .message-input-icon {
        top: 48%;
    }

    .input-container-start .message-input-icon {
        top: 48%;
        right: 88%;
        left: unset;
    }

    .beta {
        left: 200px;
        font-size: 14px;
        padding: 6px 13px;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .chat-messages {
        height: 550px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .logo-container {
        display: none;
    }
}
