baic/style.css
2025-11-19 11:52:26 -06:00

750 lines
12 KiB
CSS

@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: 'BarclaysEffra';
src: url('fonts/BarclaysEffra_W_Bd.woff') format('woff');
font-weight: 300; /* Light */
font-style: normal;
}
@font-face {
font-family: 'BarclaysEffra';
src: url('fonts/BarclaysEffra_W_Lt.woff') format('woff');
font-weight: 200; /* Light */
font-style: normal;
}
:root {
--colour-grey-1: #fff;
--colour-Barclays-Blue: #1a2142;
--colour-blue: #1a2142;
--colour-black: #000000;
--colour-white: #ffffff;
}
* {
font-family: "BarclaysEffra", sans-serif; /* Changed from "Inter" to "BarclaysEffra" */
}
body {
position: relative;
display: flex;
border: 0;
min-height: 100dvh;
height: 100dvh;
}
.logo {
width: 220px;
height: 130px;
margin-bottom: 20px;
}
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 250px;
overflow-y: auto;
display: flex;
flex-direction: column;
background: var(--colour-Barclays-Blue);
}
.sidebar-content {
flex: 1;
display: flex;
flex-direction: column;
}
/* Add this for bottom components */
.sidebar-bottom {
margin-top: auto;
padding: 20px;
}
.sidebar-title {
margin: 12px 0;
padding: 0 12px;
font-size: 22px;
font-weight: 600;
color: #ffffff;
}
.sidebar-subtitle {
margin: 12px 0;
padding: 0 12px;
font-size: 14px;
font-weight: 600;
color: #ffffff;
}
.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: #ffffff;
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 {
flex: 1;
overflow-y: auto;
}
.conversations-list-btn {
display: flex;
gap: 8px;
align-items: center;
padding: 0 12px;
border: 0;
border-radius: 12px;
height: 38px;
font-size: 14px;
color: #fff;
background: transparent;
cursor: pointer;
transition: 0.2s;
text-align: left;
}
.conversations-list-btn:hover,
.conversations-list-btn-active {
color: #fff;
background: var(--colour-blue);
}
.conversations-list:hover .conversations-list-btn-active {
color: #000;
background: transparent;
}
.conversations-list:hover .conversations-list-btn-active:hover {
color: #fff;
background: var(--colour-blue);
}
.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: #000;
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: calc(100% - 130px);
}
.message-input-container textarea {
padding: 12px 16px;
padding-right: calc(16px + 32px);
border: 3px solid var(--colour-Barclays-Blue);
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: var(--colour-Barclays-Blue);
cursor: pointer;
transition: 0.2s;
color: #fff;
}
.assistant-name-container:hover,
.assistant-name-container-active,
.tov-name-container:hover,
.tov-name-container-active {
background: var(--colour-blue);
color: #ffffffa5;
}
.assistant-name-placeholder,
.tov-name-placeholder {
color: #ffffff;
}
.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: #ffffff;
}
.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(ffffff);
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;
}
.assistants-list-item:hover,
.tov-list-item:hover {
background: var(--colour-blue);
color: #ffffff;
}
.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: rgb(235, 235, 235);
font-size: 19px;
}
.chat-message-user .chat-message-role {
background: #0079E8;
color: #fff;
}
.chat-message-content {
padding: 12px;
border-radius: 16px;
background: rgb(235, 235, 235);
max-width: 60%;
height: max-content;
}
.chat-message-user .chat-message-content {
background: #0079E8;
color: #fff;
}
.chat-message-content p {
margin: 10;
}
.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:#ffffff;
}
.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;
}
/* Error message styling */
.error-message {
background-color: #ffebee;
color: #b71c1c;
padding: 12px;
border-radius: 8px;
border-left: 4px solid #f44336;
margin: 8px 0;
font-weight: 400;
}
/* Disabled send button styling */
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Help Button */
.help-btn {
position: absolute;
top: 15px;
left: 30px;
background-color: #0079E8;
color: white;
border: none;
padding: 8px 16px;
border-radius: 20px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: background-color 0.2s;
}
.help-btn:hover {
background-color: #0056b3;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 3000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
}
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 0;
border: 1px solid #888;
width: 80%;
max-width: 600px;
border-radius: 8px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
animation-name: animatetop;
animation-duration: 0.4s
}
@keyframes animatetop {
from {top: -300px; opacity: 0}
to {top: 0; opacity: 1}
}
.modal-header {
padding: 15px 20px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h2 {
margin: 0;
font-size: 24px;
font-weight: 600;
}
.close-btn {
color: #aaa;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.modal-body {
padding: 20px;
font-size: 16px;
line-height: 1.5;
}
.modal-body a {
color: #0079E8;
text-decoration: none;
}
.modal-body a:hover {
text-decoration: underline;
}