/* ============================== */
/*    Assistant IA Panel          */
/* ============================== */
:root {
--Brain-Degraded : linear-gradient(99deg, #FF6450 -1.03%, #FF95B7 29%, #4D56D1 65.19%, #63E0DD 97.81%);  
--Spacing-S-20 : 25px;
}

.ia-assistant-right-panel {
  width: 0%;
  height: 100%;
  border-left: 1px solid #e0e0e0;
  box-shadow: -1px 0 4px rgba(0, 0, 0, 0.04);
  background-color: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0%;
  transition: flex-basis 0.3s ease;
}

.ia-assistant-header-container {
	position: relative;
	padding: 10px 20px;
	font-weight: bold;
	font-size: 14px;
	min-height: 25px;
}

.ia-assistant-footer {
	display: flex;
	padding: 5px 5px;
	border-top: 1px solid #eee;
	width: 83%;
	left: 8px;
    /*We dynamically compute position of the footer minus a small margin of max 20px at the bottom of the page*/
    top: calc(100vh -  calc(142px + min(3vh, 20px))) !important;
    .x-box-inner{
        height: 124px !important;
    }
}


.ia-assistant-collapsed {
  width: 0 !important;
  padding: 0 !important;
  border: none;
  overflow: hidden;
}

.ia-assistant-importbtn {
	display: flex;
	padding: 0px var(--Spacing-S-12, 12px);
/* 	justify-content: center; */
	align-items: center;
	gap: 4px;
	border-radius: 8px;
	border: 1px solid var(--Primary-Primary-80, #304287) !important;
	background: var(--Neutral-Neutral-00, #FFF);
	color: var(--Primary-Primary-80, #304287);
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 20px; /* 142.857% */

	/* 	height : 15%; */
	/* 	width : 35%; */
	/* 	padding: 3px 3px 3px 3px; */
}

.ia-assistant-resizer {
	width: 5px;
	cursor: col-resize;
	z-index: 10;
	background: #ccc;
}


.ia-assistant-panel-wrapper {
	display: flex;
	padding: 10px; 
	height: 100%;
	flex-direction: column;
	background: white;
	font-family: "Segoe UI", sans-serif;
}

.ia-assistant-panel-wrapper .x-box-inner {
	/*    width: 90%; */
	/*    height: 40%; */
	overflow: visible !important;
}

.ia-assistant-footer .x-box-inner {
	border: solid 1px;
	border-radius: 5px;
}

.ia-assistant-footer .ia-assistant-inputarea {
	padding: 2px 2px 2px 2px;
	width: 100% !important;
	height: 70% !important;
}

.ia-assistant-footer .ls-assist-ia-importbtn-container {
	padding-left: 8px;
	top: 70% !important;
	width: 80% !important;
	height: 30% !important;
}

.ia-assistant-footer .ia-assistant-inputarea > textarea {
	width: 95% !important;
	border: none;
	outline: none;
}

.ia-assistant-header-title {
	color: #222;
}

.ia-assistant-header-bar {
	height: 3px;
	background: linear-gradient(to right, #ec4899, #8b5cf6, #06b6d4);
	border-radius: 2px;
	margin-top: 5px;
}

.ia-assistant-right-panel .ia-assistant-dragndroparea {
	width: 100%;
	height: 100% ;
/* 	top: 5px !important; */
/* 	left: 0px !important; */
	position: absolute !important;
    background-color: rgba(0, 0, 255, 0.1);
}

.ia-assistant-footer .ia-assistant-info-message { 
	position: absolute !important;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #2f5bea;
	color: white;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: bold;
	text-align: center;
	margin: 0 auto;
	z-index: 9999;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
	animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.ia-assistant-HoveredBackgroundStyle {
	 background-color: #3D64ED33;
}

.ia-assistant-scenario-header {
    padding: 10px;
    width: 100%;
    flex: 0 0 auto !important;
}

.ia-assistant-body-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  height: 100%;
  width: 100%;
  overflow-y: auto;
   flex: 1 1 auto; 
  overflow: auto;
}

.ia-assistant-body-scrollpanel {
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 5px;
/*   overflow: auto; */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: calc(100vh - calc(190px + min(3vh, 20px)));
  top: 45px;
  width: 100%;     
}

.ai-wrapped-field-with-submit {
    position: relative;
    .ai-wrapped-submit-button {
        position: absolute;
        button {
            left: -20px;
            position: relative;
            width: 32px;
        }
    }
    &.textarea-with-submit {
        .ai-wrapped-submit-button {
            bottom: 20px;
        }
    }
    &.multilist-with-submit {
        .ai-wrapped-submit-button {
            bottom: 5px;
        }
    }
}

.ia-assistant-message-user, 
.ia-assistant-message-bot {
	color: #000;
	max-width: 75%;
	padding: 8px 12px;
	word-wrap: break-word;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px;
	background: #DCE4FD;
	border-radius: 8px;
	p {
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        font-family: 'Inter', sans-serif;
    }
}

.ia-assistant-message-user {
  align-self: flex-end;
  clear: both;
  margin: 4px 14px 4px 50px;
}

.ia-assistant-message-bot {
  align-self: flex-start;
}

.ia-assistant-action-button,
.ia-assistant-suggestion-button {
	display: flex;
	padding: 4px 8px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	border-radius: 4px;
	/* 	border: 1px solid var(--Brain-Degraded, #FF6450); */
	border: 1px solid;
	border-image: var(--Brain-Degraded) 1;
}

.ia-assistant-suggestion-button {
	align-self: flex-end;
	clear: both;
	margin: 4px 14px 4px 50px;
	border-radius: 8px;
}

.ia-assistant-suggestion-box {
    margin-top: 10px;
}

.ia-assistant-actions-header {
	color: #000;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px;
}

.ia-assistant-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ia-assistant-section-title img {
    width: 24px;
    height: 24px;
    display: block;  
    object-fit: contain; 
}

.ia-assistant-action-selected {
	min-height: 30px;
	width: 180px;
	color: white;
	display: flex;
	padding: 4px 8px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	border-radius: 4px;
	/* 	border: 1px solid; */
	/* 	border-image: var(--Brain-Degraded) 1; */
	background: var(--Brain-Degraded, linear-gradient(99deg, #FF6450 -1.03%, #FF95B7 29%
		, #4D56D1 65.19%, #63E0DD 97.81%));
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 20px;
}

.ia-assistant-change-button {
	color: #304287;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	line-height: 18px; /* 150% */
}

.ia-assistant-quickaction-section {
	border-radius: 2px;
	border-bottom: 1px solid  #96ACF9;
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
}


.ia-assistant-scenario-header-row {
	padding-left: 32px;
	align-items: center;
	gap: 30px;
}

.ia-assistant-quickaction-section,
.ia-assistant-scenario-header-row {
	display: flex;
	min-width: 200px;
	padding: 16px 8px;
	align-self: stretch;
}

.ia-assistant-question {
    margin-bottom: 5px;
}

.ia-assistant-body-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.ia-assistant-welcome {
	display: flex;
	padding: 8px 4px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 2px;
	align-self: stretch;
}

.ia-assistant-welcome-title {
	color: #000;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 24px; /* 150% */
}

.ia-assistant-welcome-message {
	color: #000;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px; /* 142.857% */
}

.ia-assistant-actions-change-selection {
	color: #304287;
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	line-height: 18px; 
}


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

.uploaded-file-tag {
    background-color: #eeeeee;
    border-radius: 12px;
    padding: 6px 12px;
    margin: 5px 5px;
    width: 90%;
    display: flex;
    align-items: center;
}

.file-badge {
	background-color: #e14b4b;
    color: white;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-right: 8px;
}

.file-name {
	color: #000; 
    font-weight: normal;
	margin-right: 8px;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-style: normal;
	line-height: 20px;
	text-decoration: none;
}

.file-name:hover {
   font-weight: bold;
}

.file-close-button {
    cursor: pointer;
    color: #888;
    font-weight: bold;
}

.file-close-button:hover {
    color: #e14b4b;
}

.file-left {
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Test hover button */

/* === Sparkles on hover === */
/**
.ia-assistant-lsToggleIaBtn::before,
.ia-assistant-lsToggleIaBtn::after {
	content: '';
	position: absolute;
	width: 6px;
	height: 6px;
	background: white;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transform: scale(0.5);
}

.ia-assistant-lsToggleIaBtn::before {
	top: 10%;
	left: 20%;
	animation: sparkle 1.2s infinite ease-in-out;
}

.ia-assistant-lsToggleIaBtn::after {
	top: 30%;
	right: 25%;
	animation: sparkle 1.5s infinite ease-in-out;
}

@keyframes sparkle {
	0% {
		opacity: 0;
		transform: scale(0.2) translateY(0);
	}
	50% {
		opacity: 1;
		transform: scale(1.2) translateY(-10px);
	}
	100% {
		opacity: 0;
		transform: scale(0.2) translateY(-20px);
	}
}

.ia-assistant-lsToggleIaBtn:hover::before,
.ia-assistant-lsToggleIaBtn:hover::after {
	opacity: 1;
}

*/
