@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");
@font-face {
    font-family: 'Montserrat';
    src: url('https://fonts.google.com/download?family=Montserrat') format('woff');
    font-weight: 300; /* Light */
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('https://fonts.google.com/download?family=Montserrat') format('woff');
	font-weight: 200; /* Light */
    font-style: normal;
}
:root {
	--colour-grey-1: #F7C83B;
	--colour-Barclays-Blue: #000000;
	--colour-blue: #000000;
	--colour-black: #000000;
	--colour-white: #F7C83B;
}

* {
    font-family: "Montserrat", sans-serif; /* Changed from "Inter" to "BarclaysEffra" */
}

body {
	position: relative;
	display: flex;
	margin: 0;
	padding: 0;
	border: 0;
	min-height: 100dvh;
	height: 100dvh;
	background-color: #F7C83B;
}

.logo {
    width: 220px;
    height: 130px;
    margin-bottom: 20px;
}

.sidebar {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 8px;
    box-sizing: border-box;
    width: min(100%, 250px);
    min-height: 100dvh;
    height: 100dvh;
    background: #F7C83B; /* Changed to white */
    color: var(--colour-black); /* Added black text color */
}



.sidebar-content {
	position: relative;
	z-index: 2;
}

.sidebar-title {
	margin: 12px 0;
	padding: 0 12px;
	font-size: 22px;
	font-weight: 600;
	color: #000000;
}

.sidebar-subtitle {
	margin: 12px 0;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: #000000;
}

.sidebar-create-new-btn-container button {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;

	box-sizing: border-box;
	width: 100%;
	height: 38px;

	font-size: 14px;
	color: #000000;
	background: transparent;
	cursor: pointer;
	transition: 0.2s;
	text-align: left;
}

.sidebar-create-new-btn-container button:hover {
	color: #fff;
	background: var(--colour-blue);
}

.sidebar-create-new-btn-container button span {
	margin-top: -1px;
}

.conversations-list {
	display: flex;
	flex-direction: column;
}

.conversations-list-btn {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;
	height: 38px;
	font-size: 14px;
	color: white;
	background: black;
	cursor: pointer;
	transition: 0.2s;
	text-align: left;
}

.conversations-list-btn:hover,
.conversations-list-btn-active {
	color: white;
	background: 0e8c58;
}

.conversations-list:hover .conversations-list-btn-active {
	color: #000;
	background: transparent;
}

.conversations-list:hover .conversations-list-btn-active:hover {
	color: #fff;
	background: 0e8c58;
}

.conversations-list-btn i {
	margin-bottom: -1px;
}

.conversations-list-btn span {
	white-space: nowrap;
	overflow: hidden;
}

.conversations-list-item-manage-container {
	display: flex;
	gap: 4px;
	margin-left: auto;
	opacity: 0;
	color: #fff;
	pointer-events: none;
	transition: 0.2s;
	width: 0;
}

.conversations-list-btn:hover .conversations-list-item-manage-container {
	width: 20px;
	opacity: 1;
	pointer-events: all;
}

.conversations-list-item-manage-btn {
	width: 20px;
	opacity: 0.65;
	transition: 0.2s;
}

.conversations-list-item-delete-btn {
	color: #ff5000;
	opacity: 0.7;
}

.conversations-list-item-manage-btn:hover {
	opacity: 1;
}

.page {
	position: absolute;
	z-index: 3;
	top: 0;
	right: 0;
	display: flex;
	gap: 12px;
	padding: 8px 12px;

	box-sizing: border-box;
	width: calc(100% - 300px);
	min-height: 100dvh;
	height: 100%;

	background: var(--colour-grey-1);
	color: white;
	transition: 0.4s;
}

.sidebar-hidden .page {
	width: 100%;
}

.sidebar-toggle-container {
	display: flex;
	align-items: center;
	height: 48px;
}

.sidebar-toggle-container {
	cursor: pointer;
}

.sidebar-toggle {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0;
	border: 0;
	border-radius: 12px;
	width: 40px;
	height: 32px;
	background: transparent;
	scale: 0.7;
	cursor: pointer;
	transition: 0.2s;
}

.sidebar-toggle-container:hover .sidebar-toggle {
	scale: 0.8;
}

body:not(.sidebar-hidden) .sidebar-toggle-container:hover .sidebar-toggle {
	opacity: 0.8;
	scale: 0.7;
}

body:not(.sidebar-hidden) .sidebar-toggle {
	scale: 0.8;
}

.sidebar-toggle-bar {
	display: block;
	content: "";
	border-radius: 5px;

	width: 40px;
	height: 5px;
	background: #000;
	transition: 0.4s;
}

body:not(.sidebar-hidden) .sidebar-toggle-bar:nth-child(1) {
	transform: translateY(13.5px) rotate(45deg);
}

body:not(.sidebar-hidden) .sidebar-toggle-bar:nth-child(2) {
	opacity: 0;
}

body:not(.sidebar-hidden) .sidebar-toggle-bar:nth-child(3) {
	transform: translateY(-13.5px) rotate(-45deg);
}

.page-content {
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	width: 100%;
	max-width: 1200px;
}

.page-content-top-padding {
	display: block;
	content: "";
	margin-top: calc(48px + 8px);
}

.chat-container {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.chat {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 16px 0;
	padding-right: 4px;
	box-sizing: border-box;
	flex-shrink: 1;
	height: 100%;
	overflow-y: auto;
	scroll-behavior: smooth;
	font-weight: 200;
}

.message-input-container {
	position: relative;
	flex-shrink: 0;
	width: 100%;
}

.message-input-container textarea {
	padding: 12px 16px;
	padding-right: calc(16px + 32px);
	border: 3px solid white;
	border-radius: 24px;
	box-sizing: border-box;
	background: transparent;
	min-width: 100%;
	width: 100%;
	resize: none;
	font-size: 16px;
}

.message-input-container textarea:focus {
	outline: 0;
	border-color: var(--colour-blue);
}

.message-input-container button {
	position: absolute;
	top: 9px;
	right: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 100%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	transition: 0.2s;
}

.message-input-container button:hover,
.message-input-container button:focus {
	background: var(--colour-blue);
	color: #fff;
}

.chat-header {
	position: relative;
	display: flex;
	gap: 24px;
	justify-content: center;
	z-index: 2;
	width: 100%;
	min-height: 48px;
}

.assistants-list-container,
.tov-list-container {
	position: relative;
	z-index: 2;
	min-width: 30%;
	width: fit-content;
	min-height: 48px;

}

.assistant-name-container,
.tov-name-container {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	content: "";
	margin: 4px auto;
	padding: 0 4px;
	border-radius: 24px;
	border: 2px solid var(--colour-Barclays-Blue);
	box-sizing: border-box;
	min-width: min(100%, 250px);
	text-align: center;
	width: fit-content;
	height: 40px;
	font-size: 14px;
	background: black;
	cursor: pointer;
	transition: 0.2s;
	color: white;
}

.assistant-name-container:hover,
.assistant-name-container-active,
.tov-name-container:hover,
.tov-name-container-active {
	background: 0e8c58;
	color: white;
}

.assistant-name-placeholder,
.tov-name-placeholder {
	color: white;
}

.assistant-name-container:hover .assistant-name-placeholder,
.assistant-name-container-active .assistant-name-placeholder,
.tov-name-container:hover .tov-name-placeholder,
.tov-name-container-active .tov-name-placeholder {
	color: white;
}

.assistants-list,
.tov-list {
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	margin-top: -28px;
	padding-top: calc(24px + 12px);
	border-radius: 0 0 12px 12px;
	min-width: min(100%, 250px);
	width: fit-content;
	background: var(--colour-grey-1);
	overflow: hidden;
	transition: 0.4s;
}

.assistants-list-hidden,
.tov-list-hidden {
	height: 0;
	padding-top: 0;
}

.assistants-list-item,
.tov-list-item {
	padding: 8px;
	border-radius: 24px;
	box-sizing: border-box;
	min-width: min(100%, 300px);
	width: fit-content;
	border: 1px solid var(--colour-Barclays-Blue);
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	transition: 0.2s;
	background-color: #333333;
	color: white;
}

.assistants-list-item:hover,
.tov-list-item:hover {
	background: var(--colour-blue);
	color: #ffffff;
}

.tov-name-container {
	display: none;
}


.chat-message {
	display: flex;
	gap: 4px;
	color: #000;
}

.chat-message:first-child {
	margin-top: 35%;
}

.chat-message-user {
	flex-direction: row-reverse;
}

.chat-message-role {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
	border-radius: 100%;
	box-sizing: border-box;
	width: 43px;
	height: 43px;
	background: #F7C83B1C;
	font-size: 19px;
}

.chat-message-user .chat-message-role {
	background: #F3F3F3;
	color: #fff;
}

.chat-message-content {
	padding: 12px;
	border-radius: 16px;
	background: #F7C83B1C;
	max-width: 60%;
	height: max-content;
}

.chat-message-user .chat-message-content {
	background: #F3F3F3;
	color: black;
}

/*.chat-message-content p {
	margin: 0;
}*/

.chat-message-appear {
	animation: chat-message-appear 2s 1;
	animation-fill-mode: forwards;
}

@keyframes chat-message-appear {
	0% {
		opacity: 0;
		max-height: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		max-height: 100%;
	}
}

.chat-message-loading-dots-wrapper {
	display: flex;
	gap: 2px;
	padding: 5px;
}

.chat-message-loading-dot {
	display: block;
	content: "";
	border-radius: 100%;
	width: 9px;
	height: 9px;
	background: #5a5a5a;
	opacity: 0.5;
	animation: chat-message-loading-dot-pulse 1.5s infinite;
}

.chat-message-loading-dot:nth-child(1) {
	animation-delay: 0.5s;
}

.chat-message-loading-dot:nth-child(2) {
	animation-delay: 1s;
}

.chat-message-loading-dot:nth-child(3) {
	animation-delay: 1.5s;
}

@keyframes chat-message-loading-dot-pulse {
	0% {
		opacity: 0.5;
	}
	30% {
		opacity: 1;
	}
	80% {
		opacity: 0.5;
	}
}

.loading-circle-container {
	display: flex;
	align-items: center;
	height: calc(100% - 100px);
}

.loading-circle {
	position: relative;
	display: block;
	content: "";
	margin: 0 auto;
	margin-top: 24px;
	border: 5px solid var(--colour-blue);
	border-radius: 100%;
	width: 50px;
	height: 50px;
	animation: loading-circle-spin 1.5s infinite linear;
}

.loading-circle::after {
	position: absolute;
	bottom: -5px;
	right: -5px;
	display: block;
	content: "";
	width: calc(50% + 5px);
	height: calc(50% + 5px);
	background: var(--colour-grey-1);
}

.fa-solid {
	color:#ffffff;
}

.fa-user {
	color: black;
}

.fa-robot {
	color:#000;
}

@keyframes loading-circle-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 12px;
  text-align: left;
}

thead {
  background-color: #333333;
  color: #ffffff;
}
tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}


.message-input-container {
	position: relative;
	flex-shrink: 0;
	width: 100%;
}

.message-input-container textarea {
	padding: 12px 16px;
	padding-right: calc(16px + 72px); /* Increased to accommodate two buttons */
	border-radius: 24px;
	box-sizing: border-box;
	background: white;
	min-width: 100%;
	width: 100%;
	resize: none;
	font-size: 16px;
}

.message-input-container textarea:focus {
	outline: 0;
	border-color: var(--colour-blue);
}

.message-input-container button {
	position: absolute;
	top: 9px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 100%;
	cursor: pointer;
	transition: 0.2s;
}

.message-input-container .file-upload-btn {
	right: 52px;
	display: none;
}

.message-input-container .send-btn {
	right: 12px;
}

.message-input-container button:hover,
.message-input-container button:focus {
	background: var(--colour-blue);
	color: #fff;
}

.file-display {
    display: none;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.file-attachment {
    margin-top: 5px;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 12px;
    color: var(--colour-black); /* Ensure the text is black */
}

.clear-file-btn {
    position: absolute;
    top: 9px;
    right: 92px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 100%;
    cursor: pointer;
    transition: 0.2s;
    background-color: #f0f0f0;
}

.clear-file-btn:hover {
    background-color: #e0e0e0;
}

.file-attachment i {
    color: var(--colour-black); /* Ensure the paperclip icon is also black */
}
