/* @import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Fredoka+One&family=Galindo&family=Kirang+Haerang&family=Lato:wght@300;400;700&display=swap'); */

* {
    --rc-purple-color: #3f215a;
    --rc-light-purple-color: #A487BF;
    --rc-med-purple-color: #654D7B;
    --rc-orange-color: #EF4A25;
    --rc-light-orange-color: #FFF3E5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", helvetica, arial, sans-serif;
  }
  
  .hide {
    display: none !important;
  }
  
  .visibility-hidden {
    visibility: hidden;
  }
  
  html, body {
      height: 100%;
  }
  
  body {
    line-height: normal;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-size: revert;
    font-weight: bold;
  }
  
  hr {
    border: 0.5px solid var(--rc-light-purple-color);
    background-color: var(--rc-light-purple-color);
    color: var(--rc-light-purple-color);
    margin: 0px
  }
  
  .red-font {
    color: red;
  }
  
  .red {
    background: red;
    color: red;
  }
  
  
  .amber {
    background: rgb(236, 156, 43);
    color: rgb(236, 156, 43)
  }
  
  .green-font {
    color: rgb(16, 168, 125)
  }
  
  .light-green {
    background: rgb(187, 217, 88);
    color: rgb(187, 217, 88)
  }
  
  .green {
    background: rgb(16, 168, 125);
    color: rgb(16, 168, 125)
  }

  .grey {
    color: rgb(165, 165, 168);
  }
  
  .dark-orange {
    color: rgb(234, 114, 39);
  }
  
  .table-value {
    font-weight: bold;
  }
  
  .highlight {
    background-color: #f3dcb7;
  }
  
  .highlight-sentence {
    font-weight: bold;
    border-bottom: 2px dotted #3350f6;
  }
  
  .inherit-all {
    all: inherit;
  }


  .flash-msg {
    color: darkred;
  }

  .flash-msg-container {
    color: darkred;
    display: flex;
    justify-content: space-between;
  }
  
  .flash-msg-container {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    position: relative;
  }
  .flash-msg-container.success {
    background-color: #d4edda;
    color: #155724;
  }
  .flash-msg-container.error {
    background-color: #f8d7da;
    color: darkred;
  }
  .flash-msg-container i {
    margin-right: 5px;
  }
  
  .flash-msg-container ul {
    margin-bottom: 0px;;
  }
  
  .focus-feedback {
    font-weight: bold;
    border: 0.5px solid #dee2e6;
    border-radius: 5px;
    padding: 5px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px 0px, rgba(0, 0, 0, 0.19) 0px 6px 20px 0px;  
  }
  
  table.dataTable tbody tr.whitelist-row-highlight {
    background: rgb(228, 235, 231);
    font-style: italic;
  }

  .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-out 2.7s;
  }

  .toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
  
  .toast-error {
    background-color: #e17038 !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    opacity: 0.9 !important;
  }
  
  .toast-info {
    background-color: #76afff !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    opacity: 0.9 !important;
  }
  
  .toast-success {
    background-color: #4bba9e !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    opacity: 0.9 !important;
  }
  
  .toast-info a {
    text-decoration: underline;
  }

  @keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
  }

  @keyframes fadeOut {
      from {
          opacity: 1;
      }
      to {
          opacity: 0;
      }
  }
  
  .feedback-chart {
    position: relative;
    background-image: none;
    background-size: 100% 100%;
    width: 300px; /* adjust based on your layout */
    height: 300px;
    margin-left: auto;
    margin-right: auto;
    display: none;
  }
  
  
  .plot-area {
    position: absolute;
    width: 63%; /* relative to the chart area size*/
    height: 79%; /* relative to the chart area size*/
    background-color: rgba(173, 49, 49, 0.0); /*semi-transparent white */
    top: 15%; /* absolute position from the top of chart area */
    left: 12%; /* absolute position from the left of chart area */
    box-sizing: border-box;
  }
  
  .scatter-point {
    position: absolute;
    width: 10%; /* relative to chart area size */
    height: 10%; /* relative to chart area size */
    border-radius: 50%;
    background-color:rgb(0, 145, 255);
    bottom: 50%; /* absolute position from the top of chart area */
    left: 50%; /* absolute position from the left of chart area */
  }
  
  .demo-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  .header-tooltip {
    position: absolute;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 0.8rem;
    white-space: pre-wrap;
  }
  
  
  video {
    width: 40%;
    height: auto;
  }
  
  
  /*****************************************************************************/
  /************************ SIGNUP AND LOGIN PAGE SETTINGS *********************/
  /*****************************************************************************/

   .login-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    align-self: center;
    margin-top: 10%;
    overflow: hidden;
    border: 0.5px solid var(--rc-light-purple-color);
    border-radius: 12px;
    padding: 20px 30px;
    max-width: 30%;
  }
  
  .login-container p {
    color: var(--rc-purple-color);
  }
  
  .login-container  p span {
    font-family: 'Convergence', sans-serif;
  }
  
  .login-container .signup-title {
    font-size: 5rem;
    margin: 20px;
  }
  
  .login-container  .signup-title.small {
    font-size: 2rem;
  }
  
  .login-container  .signup-options {
    margin-left: auto;
    margin-right: auto;
  }
  
  .login-container  .signup-message {
    margin: 30px;
    color: var(--rc-purple-color);
    text-align: center;
  }
  
  .login-container .signup-button {
    border-radius: 2px;
    background: white;
    border: 0.5px solid grey;
    height: 40px;
    display: flex;
    align-items: center;
  }
  
  .login-container .fs-div#submit,
  .login-container .signup-button a {
    display: flex;
    align-items: center;
    justify-items: flex-start;
    text-decoration: none;
    color: white;
    margin-left: auto;
    margin-right: auto;
  }
  
  .login-container .fs-div#submit input {
    background: var(--rc-light-purple-color);
    border: none;
    font-size: 1rem;
    color: white;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
    border: 0.5px solid var(--rc-light-orange-color);
    height: 40px;
    width: max-content;
    padding: 0px 20px;
    align-items: center;
  }
  
  .fs-div input {
    border: 0.5px solid black;
    padding: 3px;
    border-radius: 3px;}
  
  .fs-div input:read-only:not([type="submit"]):not([id="remember"]) {
      background-color: #f2f2f2;
      pointer-events: none;
    }
  
  .fs-div .form-group-info {
    margin-left: 3px;
  }
  
  /* https://github.com/Flask-Middleware/flask-security/blob/528d9a65b9722346f114f4d96ce7e1bbb6d97a96/flask_security/templates/security/base.html#L21 */
  .fs-center { text-align: center }
  .fs-important { font-size: larger; font-weight: bold }
  .fs-gap { margin-top: 20px; }
  .fs-div { margin: 4px; }
  .fs-error-msg { color: darkred; }
  
  .fs-div .form-text {
    color: #212529bf;
    margin-top: 0.25rem;
    font-size: 0.875em
  }
  
  .fs-div-field {
    display: flex;
    justify-content: center;
  }
  
  .fs-div-field input {
    margin-left: 3px;
  }
  
  .login-container .signup a {
    text-decoration: none;
  }
  
  .login-container .local-signup .signup-button p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .login-container .local-signup .signup-button {
    height: fit-content;
    padding: 3px;
    flex-direction: column;
  }
  
  .context-text {
    font-style: italic;
    font-size: 0.7rem;
    padding-top: 2px
  }
  
  .login-container .signup-button img {
    max-width: 48px;
    width: 18px;
    margin: 0px 12px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
  }
   
  .login-container .signup-button p {
    margin-right: 12px;
    margin: 0px 12px 0px 0px;
    color: var(--rc-purple-color);
  }
  
  .login-container .loginBtn a,
  .login-container .menu.signup-email,
  .login-container a.menu.signup-email,
  .login-container .menu {
    color: var(--rc-purple-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--rc-purple-color);
  }
  
  
  .login-container .signup-gap {
    width: 230px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .login-container .fs-div label {
    color: var(--rc-purple-color);
  }

  .login-container .signup-options .google-signup {
    border-radius: 2px;
    background: white;
    border: none;
    height: 40px;
    display: flex;
    align-items: center;
    margin: 15px;
    text-decoration: none;
    width: 220px;
  }

  .login-container .google-signup .signup-button {
    display: flex;
    align-items: center;
    width: 220px;
  }

  .login-container .google-signup .signup-button span {
    text-decoration: none;
    border-bottom: none;
    color: black;
  }

  @media screen and (max-width: 992px) {

    .login-container {
      max-width: 80%;
    }

  }

  
  @media screen and (max-width: 768px) {



    .login-container .signup-title {
      font-size: 3rem;
      margin: 15px;
    }
  
    .login-container .signup-message {
      font-size: 0.8rem;
  
  }
  }
  
  @media screen and (max-width: 400px) {
    .login-container .signup-message {
    position: relative;
    margin: 30px;
    color: var(--rc-purple-color);
    text-align: center;
  }

  .chat-end-container .chat-end-ctas > .cta {
    justify-content: center;
    margin: 3px;
  }
  }
  
  /*****************************************************************************/
  /***************************** ERROR PAGE SETTINGS *************************/
  /*****************************************************************************/
  
  #errorPage {
    background-image: linear-gradient(to bottom right, #DFE9EB, #FFD7C2);
    margin: 0% 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  #errorPage .error-icon img {
    height: 200px;
  }
  
  .error-title .error-detail,
  .error-title .error-desc,
  .error-title .error-code,
  .error-title .error-reason {
    text-align: center;
    margin: auto;
    font-size: 100%;
    font-weight: bold;
    color: #181826}
  
  .error-title .error-code {
    font-size: 400%;
  }
  
  .error-title .error-detail {
    font-weight: normal;
  }
  
  /*****************************************************************************/
  /***************************** HOMEPAGE SETTINGS *****************************/
  /*****************************************************************************/
  
  #homePage {
    background: #f7f5f2;
    display: flex;
  }
  
  .home-header.analyse {
    display: flex;
    justify-content: space-between;
  }
  
  .home-header.analyse .navigation {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .home-header.analyse .navigation a {
    text-decoration: none;
    color: var(--rc-purple-color);
    font-weight: bold;
    padding: 3px;
  }
  
  #homePage .nav-container-footer,
  .nav-container {
    flex: 1;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--rc-purple-color);
    font-size: 0.9rem;
  }
  
  #homePage .nav-container-footer {
    display: none;
  }
  
  .nav-container h4 {
    margin-bottom: 0px;
    font-weight: bold;
  }
  
  .nav-container .author-select-container {
    padding: 10px 16px
  }

  .nav-container .author-select-container select {
    padding: 5px;
    border-radius: 10px;
  }

  .nav-container .select-with-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-container .spinner-container {
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

  .nav-container.select-with-spinner select {
      width: auto;
      min-width: 150px;
  }

  .nav-controls,
  .nav-info {
    flex: 8;
  }
  
  .nav-controls i,
  .nav-actions i {
    padding: 0px 5px 0px 0px
  }
  
  .dropdown {
    position: relative;
  }
  
  .dropdown-content {
    display: none; /* Hidden by default, shown via JS */
    background-color: var(--rc-purple-color); 
    min-width: 160px;
    z-index: 3; /* Ensure it appears above other content */
  }
  
  .old-chats .dropdown-content {
    overflow-y: scroll;
    max-height: 400px;
    max-width: 350px;
  }
  
  .nav-content h4 {
    padding: 6px 16px;
    color: #9595ad;
    font-size: 1rem !important
  }
  
  .nav-content {
    flex: 9;
    overflow: auto;
    max-height: 100%;
  }
  
  .nav-info a {
    margin-top: auto;
  }
  
  .nav-actions {
    flex: 1;
  }
  
  /* Sidebar links */
  #homePage .nav-container-footer a,
  .nav-container a {
    display: block;
    color: white;
    padding: 6px 16px;
    text-decoration: none;
  }
  
  /* Active/current link */
  #homePage .nav-container-footer a.active,
  .nav-container a.active {
    background-color: var(--rc-med-purple-color);
    color: white;
  }
  
  /* Links on mouse-over */
  #homePage .nav-container-footer a:hover:not(.active),
  .nav-container a:hover:not(.active) {
    background-color: var(--rc-med-purple-color);
    color: white;
  }
  
  .nav-content a {
    font-size: 0.8rem;
    padding: 6px 30px;
    color: #c4c4cf
  }
  
  #homePage .home-header .book-demo {
    display: flex;
    border: solid 0.5px #fbe8be;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0px 3px 6px #7788a0;
    background: #fbe8be;
    font-size: 1.1rem;
    align-items: center;
    justify-content: space-between;
  }
  
  /* On screens that are less than 768px wide, make the sidebar into a topbar */
  @media screen and (max-width: 768px) {
    #homePage {
      flex-direction: column;
    }
  
    .home-header.analyse {
      display: flex;
      flex-direction: column;
    }
    
    .home-header.analyse .navigation {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: flex-end;
    }
    
    
    #homePage .nav-container,
    #homePage .nav-container-footer {
      width: 100%;
      height: auto;
      position: relative;
      flex: 0 1 auto;
      align-items: center;
      justify-items: center;
    }
    #homePage .nav-container .nav-controls {
      display: flex;
    }
  
    .dropdown-content {
      display: none !important; /* Force hiding dropdown content on small screens */
    }
  
    .home-header.analyse .navigation {
      display: none;
    }
  
    #homePage .nav-container .nav-content,
    #homePage .nav-container .nav-info,
    #homePage .nav-container .nav-actions {
      display: none;}
  
    #homePage .nav-container-footer {
      display: flex;
      flex: 0 1 auto;
    }
  
    #homePage .nav-container-footer .nav-info,
    #homePage .nav-container-footer .nav-actions {
      display: flex;
    }
  
    #homePage .nav-container a,
    #homePage .nav-container-footer a {
      float: left;
      padding: 6px 8px;}
  
    #homePage .home-container {
      padding: 0px 15px 0px 15px;
    }
  }
  
  .design-container,
  .home-container {
    position: relative;
    flex: 5;
    height: 100%;
    color: var(--rc-purple-color);
    padding: 15px 15px 15px 15px;
    overflow: auto;
  }
  
  .home-title {
    display: flex;
    align-items: center;
  }
  
  .home-title img {
    flex: 1;
    height: auto;
    max-width: 10%;;
  }
  
  .home-title h1, .home-title h2 {
    color: var(--rc-purple-color);
    margin: 0px 0px 0px 20px;
    font-family: "House Slant", "Lato", sans-serif;}
  
  .home-title h2 {
    color: var(--rc-orange-color) /* Orange */
  }
  
  
  /* scenario cards - grid format */
  .sit-cards {
    margin: 10px 0px 0px 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* max-width: 30em; */
  }
  
  /* scenario cards - images for each scenario */
  .sit-cards li .sit-icon {
    flex: 1 1 0%;
  }
  
  .sit-cards li .sit-icon img {
    height: 100px;
    border-radius: 10px 0px 0px 10px;
  }
  
  /* scenario cards - info for each scenario */
  .sit-cards li .sit-info {
    flex: 7 1 0%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-items: center;
  }
  
  /* scenario cards - individual card formatting */
  .sit-cards li {
    list-style: none;
    margin: 0.5em 0.5em;
    background: #f7e1bc;
    position: relative;
    transition: 400ms;
    border-radius: 10px;
    display: flex;
    height: 100px;
    overflow: hidden;
  }
  
  .sit-cards .interview-practice,
  .sit-cards .hiring-practice  {
    background: #d8e2eb;
  }
  
  .sit-cards .onboarding  {
    background: #caebe3;
  }
  
  .sit-cards .core-skills  {
    background: #e7d5eb;
  }
  
  .sit-cards .coaching  {
    background: #e0eacd;
  }
  
  .sit-cards .create  {
    background: #c9d7ff;
  }
  
  .sit-cards .demo-scenario  {
    background: #caeaff;
  }
  
  .sit-cards a.clickable-card {
    color: #85baff;
    text-align: right;
    display: block;
    z-index: 1;
  }
  
  .sit-cards li a.clickable-card::after{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: ' ';
  }
  
  .sit-cards li:hover, .fullclick li:focus-within {
    background: #faca7d;
    box-shadow: 0px 3px 6px #000;
  }
  
  .sit-cards .interview-practice:hover, .fullclick .interview-practice:focus-within,
  .sit-cards .hiring-practice:hover, .fullclick .hiring-practice:focus-within {
    background: #adcced;
  }
  
  .sit-cards .onboarding:hover, .fullclick .onboarding:focus-within {
    background: #7fe3cc;
  }
  
  .sit-cards .core-skills:hover, .fullclick .core-skills:focus-within {
    background: #e2beeb;
  }
  
  .sit-cards .coaching:hover, .fullclick .coaching:focus-within {
    background: #d0e9a2;
  }
  
  
  .sit-cards .create:hover, .fullclick .create:focus-within {
    background: #a3baf7;
  }
  
  .sit-cards .demo-scenario:hover, .fullclick .demo-scenario:focus-within {
    background: #a0dafe;
  }
  
  
  .sit-info h5 {
    /* font-family: 'Galindo', sans-serif; */
    font-weight: 900;
    font-size: 1.0rem;}
  
  .sit-info p {
    font-size: 0.85rem;
  }
  
  /* Filtering */
  
  /* Style the buttons */
  .btn {
    border: none;
    outline: none;
    padding: 12px 16px;
    margin: 10px 5px 0px 5px;
    background-color: #f1f1f1;
    cursor: pointer;
    border-radius: 5px;
  }
  
  /* Add a light grey background on mouse-over */
  .btn:hover {
    background-color: #ddd;
  }
  
  /* Add a dark background to the active button */
  .btn.active {
    background-color: var(--rc-purple-color);
    color: white;
  }
  
  #toggleDemoContent {
    margin-left: 5px;
  }
  
  @media screen and (max-width: 768px) {
    .home-title img {
      max-width: 15%;
      height: auto;
    }
  
    .home-title h1, .home-title h2 {
      margin: 8px;
    }
  
    .sit-cards {
      grid-template-columns: 1fr;
    }
  
    .sit-cards li {
      height: auto;
    }
  }
  
  
  /*****************************************************************************/
  /***************************** TABLE SETTINGS ****************************/
  /*****************************************************************************/
  
  table {border-collapse: separate;
        border-spacing: 0 15px}
  
  td {border: none;
      padding: 0 10px;
    white-space: pre-line;}
  

  table.dataTable tbody tr:nth-child(even) {
    background-color: var(--rc-light-orange-color);
  }

  .process-datasource-pipeline {
    margin: 5px 0px;
  }
  
  #datasourcesTable td.process-datasource {
    display: flex;
  }

  .manage-controls,
  .row-controls {
    display: flex;
  }

  .manage-controls > div {
    display: flex;
    flex-direction: row;
    align-items: center
  }

  .manage-controls label {
    text-align: right;
    margin-right: 5px;

  }

  .manage-header .manage-controls {
    display: flex;
    flex-direction: column;
  }

  .manage-header .manage-controls button {
    margin: 0px 2px;
  }

  .manage-header .manage-controls .load > div,
  .manage-header .manage-controls .process > div {
    display: flex;
    margin: 3px 0px;
  }

  .row-controls {
    flex-direction: column;
    align-items: center;
  }

  .row-controls button {
    margin: 2px;
  }

  td .process-datasource,
  td .generate-embedding,
  td .remove-embedding,
  td .continue-experiment,
  td .evaluate-experiment {
    display: flex;
  }

  td .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  td #openReviewIcon {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--rc-light-purple-color-color);
  }

  td #markForReviewBtn {
    background: white;
    border: 0.75px solid var(--rc-orange-color);
    color: var(--rc-orange-color);
    border-radius: 5px;
    padding: 2px;
  }

  td #markForReviewBtn[data-marked=True] {
    border: 0.75px solid var(--rc-light-purple-color);
    color: var(--rc-light-purple-color);
  }

  /*****************************************************************************/
  /***************************** MANAGE PAGE SETTINGS ****************************/
  /*****************************************************************************/
  
  .manage-container {
    display: flex;
    flex-direction: column;
  }
  
  .manage-container #manageBtn {
    align-self: flex-start;
    margin: 5px 0px;
  }
  
  .manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
  }
  
  .manage-header h2 {
    font-weight: bold
  }
  
  .collapsible-section .section-content {
    display: none;
    width: 100%; /* Ensure the content takes full width */
}
.collapsible-section.open .section-content {
    display: block;
}

.section-content table {
  width: 100% !important; /* Make the table take up full width of its container */
}

.table-container {
  width: 100%;
  overflow-x: auto; /* Allows horizontal scrolling on small screens if needed */
}


.toggle-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
}

.toggle-btn i {
    transition: transform 0.3s ease;
}
  
  .input-wrapper {
    display: flex;
  }
  
  .fixed-prefix {
    font-size: 0.9rem;
    padding-right: 2px;
    padding-top: 4px
  }
  
  table tbody tr {
    cursor: pointer;
  }
  
  table tbody tr:hover {
    background-color: #fbefdc; 
  }
  
  
  table.dataTable tbody .selected-row {
    background: #f2ddbb;
  }
  
  
  #inviteModal .header {
    display: flex;
  }
  
  .title-and-tips {
    display: flex;
  }
  
  .table-tips {
    display: flex;
    flex-direction: column;
    color: grey;
    padding: 0px 20px;
    font-style: italic;
  }
  
  
  /***************************** ADD USERS SETTINGS ****************************/
  
  #engagementTable th .form-group-info,
  #userGroupsTable th .form-group-info {
    align-self: center;
  }
  
  /* .manage #inviteModal {
    display: flex;
    flex-direction: column;
  } */
  
  /* .customise-scenario-form, */
  .email-form {
    display: flex;
    flex-direction: column;
  }
  
  #scenarioSelect,
  #emailContainer {
    width: 100%;
  }
  
  #emailContainer .form-group-title,
  #emailContainer .form-group {
    margin: 2px;
  }
  
  #emailContainer .form-group .form-text {
    margin: 4px;
  }
  
  
  #emailInput {
    width: 100%;
    text-align: start;
    padding: 10px;
    border: solid 0.5px #b2bbc3;
    display: none;
  }
  
  #sendEmailInvite {
    display: none;
  }
  
  
  #validEmails, #invalidEmails {
    display: flex;
    flex-wrap: wrap;
  }
  
  #emailContainer span {
    margin: 3px;
    padding: 3px;
    border-radius: 5px;
  }
  
  #emailContainer span.valid {
    border: solid 0.5px green;
    background-color: rgb(218, 246, 218);
  }
  
  #emailContainer span.invalid {
    border: solid 0.5px rgb(248, 23, 23);
    background-color: rgb(246, 225, 225);
  }
  
  .email-validation {
    margin: 10px 0px;
  }
  
  .valid-email-header, invalid-email-header {
    margin: 5px 0px;
  }
  
  #chatPage .login-container input#submit
  .book-demo button,
  #demoCTABtn,
  #processDataSourceBtn,
  #processAllDataSourcesBtn,
  #copyInviteLinkBtn,
  #submitComponentBtn,
  #deleteSelectedComponentsBtn,
  #addComponentBtn,
  #duplicateCustomiseScenarioBtn,
  #customiseScenarioBtn,
  #customiseFeedbackBtn,
  #getResultsBtn,
  #manageBtn,
  #addCreatorBtn,
  #addDataSourceBtn,
  #loadDataSourceBtn,
  #removeEmbeddingBtn,
  #generateEmbeddingsBtn,
  #generateAllEmbeddingsBtn,
  #evaluateAllConversationsBtn,
  #evaluateConversationBtn,
  #addScenarioBtn,
  #saveReviewBtn,
  #evaluateExperimentBtn,
  #continueExperimentBtn,
  #runExperimentsBtn,
  #addFeedbackCriteriaBtn,
  #addBotCharacterBtn,
  #addUsersBtn,
  #addUserGroupBtn,
  #updateCreatorSettingsBtn,
  #addCreatorBtn,
  #submitEmailsBtn,
  #reactivateUserBtn,
  #deactivateUserBtn,
  #removeWhitelistedUserBtn,
  #updateRegistrationCodeBtn {
    width: max-content;
    align-self: flex-end;
    border-radius: 3px;
    text-align: center;
    padding: 5px 7px;
    font-size: 0.9rem;
    border: solid 0.5px var(--rc-orange-color);
    background: var(--rc-orange-color);
    color: white;
  }
  
  .core-settings {
    display: flex;
    justify-content: space-between;
    align-self: flex-start;
  }
  
  .update-scenario-btn-top {
    display: flex;
    justify-content: end;
  }
  
  #copyInviteLinkBtn {
    background: none;
    color: #302fb2;
    border: none;
    margin: 0px;
    padding: 0px;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 5px;
  }
  
  .copy-magic-link-btn i,
  #copyInviteLinkBtn i {
    color: #302fb2
  }
  
  .copy-magic-link-btn {
    margin-top: 0px;
    align-items: center;
    border: none;
    background: none;
    padding-left: 3px;
  }
  
  .magic-code {
    font-size: 0.9rem;
    border: 0.5px solid #c2c3cb;
    padding: 3px;
    border-radius: 3px;
    background: #edeef1
  }
  
  .generate-magic-link-btn {
    font-size: 0.8rem;
    color: grey;
    text-decoration: underline;
    background: none;
    border: none;
  }
  
  #customiseScenarioBtn,
  #updateRegistrationCodeBtn,
  #deactivateUserBtn,
  #evaluateConversationBtn,
  #loadDataSourceBtn,
  #generateEmbeddingsBtn,
  #evaluateExperimentBtn,
  #continueExperimentBtn,
  #processAllDataSourcesBtn,
  #generateAllEmbeddingsBtn{
    border: solid 0.5px var(--rc-orange-color);
    background: white;
    color: var(--rc-orange-color);
  }
  
  #removeEmbeddingBtn {
    border: none;
    background: red;
    color: white;
  }


  #removeWhitelistedUserBtn {
    border: solid 0.5px red;
    background: white;
    color: red;
  }
  
  #updateRegistrationCodeBtn {
    margin: 0px 10px;
    margin-left: auto;
    text-decoration: none;
  }
  
  #evaluateAllConversationsBtn:disabled,
  #evaluateConversationBtn:disabled,
  #processDataSourceBtn:disabled,
  #submitComponentBtn:disabled,
  #deleteSelectedComponentsBtn:disabled,
  #submitEmailsBtn:disabled,
  #submitEmailsBtn[disabled] {
    border: solid 0.5px rgb(106, 102, 102);
    background: rgb(210, 208, 208);
    color: rgb(106, 102, 102);
    cursor: not-allowed;
  }
  
  #demoCTABtn {
    align-self: center;
    text-decoration: none;
    margin-top: 15px;
  }
  
  #addComponentBtn {
    border: solid 0.5px rgb(16, 168, 125);
    background: white;
    color: rgb(16, 168, 125);
    align-self: flex-start;
  }
  
  #removeComponentBtn {
    border: none;
    background: none;
    color: red;
  }
  
  #removeComponentBtn .fa-circle-xmark {
    color: red;
  }
  
  #deleteSelectedComponentsBtn {
    border: solid 0.5px red;
    background: white;
    color: red;
  }
  
  .edit-component-btn {
    border: none;
    background: none;
  }
  
  .toggle-seats-data {
    display: flex;
    align-items: center;
    margin: 5px 0px;
  }
  
  .toggle-seats-data p {
    margin: 0px 5px;
  }
  
  .magic-code-container {
    display: flex;
  }
  
  .flex-row-with-columns {
    display: flex;
    flex-direction: column;
  }
  
  
  /*****************************************************************************/
  /***************************** DESIGN PAGE SETTINGS ****************************/
  /*****************************************************************************/

  #evaluationForm .submit-container {
    display: flex;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 0px;
  }
  
  .form-check.has-error,
  .form-group.has-error {
    background: #fce3c1;
  }
  
  .form-check label,
  .form-group label {
    font-weight: bold;
  }
  
  .form-group-title {
    display: flex;
  }
  
  .form-group-info {
    margin-left: 6px
  }

  .process-datasource-pipeline {
    display: flex;
    align-items: center;
  }

  #processPipelineSelect {
    width: 100%;
  }
  
  .process-datasource-pipeline .select2-selection--multiple {
    border: 0.5px solid var(--rc-light-purple-color) !important;
  }

  .process-datasource-pipeline .select2-container,
  .process-datasource-pipeline .select2-search--inline,
  .process-datasource-pipeline .select2-search__field {
    font-family: 'Lato', sans-serif !important;
    color: (var(--rc-purple-color)) !important;

  }

  .select2, .select2-container, .select2-container--default,
  .form-group textarea,
  .form-group input,
  .form-group select {
    padding: 5px;
    resize: none;
    width: 100%;
  }
  
  .form-group .component {
    display: flex;
    margin: 5px;
    width: 100%;
    flex-direction: column;
  }
  
  .form-group .component .component-name {
    display: flex;
    align-items: center;
  }
  
  .form-group .component .component-name input {
    margin-left: 10px;
  }
  
  .form-group .component > * {
    margin: 5px 10px;
  }
  
  .form-group .component textarea {
    width: 100%;
  }
  
  .form-group .component input {
    width: 100%
  }
  
  .form-group .component button {
    width: max-content;
  }
  
  .component-header,
  .component-content {
    display: grid;
    grid-template-columns: 2fr 6fr 0.5fr;
    gap: 10px;
  }
  
  .component-header { 
    font-weight: bold;
  }
  
  .component-content .remove-component-container {
    margin-left: auto;
    margin-right: auto;
  }
  
  .form-group .component hr {
    border: 0.5px solid #c9c9e4
  }
  
  .form-group textarea[readonly="readonly"],
  .form-group input[readonly="readonly"] {
    background-color: #f2f2f2;
    pointer-events: none;
  }
  
  .form-group input.datepicker[readonly="readonly"] {
    background-color: white;
    pointer-events: visible;
  }
  
  .form-text {
    width: 100%;
  }
  
  th .form-text {
    font-size: 0.8rem;
    font-weight: normal;
  }
  
  .form-group input.form-check-input {
    width: 1.3rem;
    height: 1.3rem;
  }
  
  
  .select2-container--default .select2-selection--multiple {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
  }
  
  
  .select2-selection__choice__remove span {
    color: initial;
  }
  
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f5e5ca;;
    border: 1px solid var(--rc-orange-color);
  }
  
  .section {
    margin-bottom: 30px;
  }
  
  .subsection-content,
  .section-content {
    display: none;
  }
  
  .show-section {
    display: block;
  }
  
  .error-section {
    color: #b31d1d;
  }
  
  
  section textarea {
    height: auto;
  }
  
  #partnerComponentsTable_wrapper {
    width: 100%;
  }
  
  #emptyPlaceholderWarning {
    margin-top: 10px;
  }
  
  .component-content .form-key {
    display: flex;
    align-items: baseline;
  }
  
  .edit-link {
    background: none;
    border: none;
    padding-left: 5px;
  }
  
  .entity-select {
    display: flex;
    width: 100%;
  }
  
  
  /*****************************************************************************/
  /***************************** CHAT PAGE SETTINGS ****************************/
  /*****************************************************************************/
  
  #chatPage {
    background: var(--rc-purple-color);
    display: flex;
    flex-direction: row;
    height: 100%;
    margin: 0;
  }
  
  
  #chatPage .nav-container {
    flex-shrink: 0;
  }
  
  
  #chatPage .chat-container {
    flex: 6;
    background: white;
    box-shadow: 0px 0px 15px 0px black;
    color: var(--rc-purple-color);
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  #homePage .notes-container,
  #chatPage .notes-container {
    flex: 2;
    background: var(--rc-purple-color);
    margin-right: 0%;
    display: flex;
    flex-direction: column;
    position: relative;
   transition: all 0.5s ease;
    overflow: auto;
  }
  
  #homePage .notes-container.hidden,
  #chatPage .notes-container.hidden {
    visibility: hidden;
    flex: 0;
    width: 0;
    margin: 0;
    padding: 0;
  }
  

  #homePage .notes-container .notes-body,
  #chatPage .notes-container .notes-body {
    flex: 1;
    border-radius: 5px;
    background-color: #f7f5f2;
    margin: 3% 3.5% 1% 3.5%;
    padding: 3%;
  }

  .notes-container .evaluation-container .criteria-container {
    display: flex;
    flex-direction: column;
    margin: 0px 0px 10px 0px;
  }

  .notes-container .evaluation-container .criteria-container .criteria-header {
    display: grid;
    grid-template-columns: 1fr 0.5fr 0.1fr;
    align-items: center;
    margin: 0px 0px 5px 0px;
  }

  .notes-container .evaluation-container .evaluation-header {
    text-align: center;
    margin: 20px 0px 10px 0px;
  }

  .notes-container .evaluation-container .evaluation-loader {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .notes-container .evaluation-container .evaluation-loader i {
    margin-left: 4px;
  }

  .notes-container .evaluation-container .criteria-toggle {
    background: none;
    border: none;
    margin-left: auto;
  }
  

  .notes-container .evaluation-container .bot-review-container {
    margin-top: 20px;
  }
  
  #chatPage .notes-container .feedback-criteria .generate-feedback,
  #chatPage .notes-container .feedback-criteria .generate-feedback-new {
    margin-top: auto;
    border-radius: 7px;
    background: rgb(210, 208, 208);
    color: rgb(106, 102, 102);
    text-align: center;
    padding: 5px;
  }
  
  #chatPage .notes-container .feedback-criteria .generate-feedback.active {
    background: var(--rc-orange-color);
    color: white;
    font-weight: bold;
  }
  
  #chatPage .notes-container .feedback-criteria .generate-feedback-new {
    margin-left: 3px;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  
  #chatPage .notes-container .feedback-criteria .generate-feedback-new.active {
    background: var(--rc-light-orange-color);
    color: #2c2d4a;
    font-weight: bold;
  }
  
  #chatPage .notes-container .feedback-criteria .generate-feedback.active:hover,
  #chatPage .notes-container .feedback-criteria .generate-feedback-new.active:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  
  .notes-container h4 {
    padding-bottom: 3px;
    font-size: 1rem !important;
    font-weight: bold;
  }
  
  .notes-container ol,
  .notes-container ul {
    padding-left: inherit !important;
  }
  
  .notes-container .fc,
  .notes-container .rr {
    font-size: 0.9rem;
    padding: 2px 0px;
  }
  
  .notes-container ul,
  .notes-container li {
    margin-left: 0.4em;
    text-align: left;
  }
  
  .notes-container .fc li {
    list-style-type: disc;
  }
  
  .notes-container li::marker{
    content:"• ";
    font-size: 0.9rem;
    color: black;
    vertical-align: bottom;
  }
  
  #homePage .notes-container hr,
  #chatPage .feedback-container hr,
  #chatPage .notes-container hr {
    display: block;
    border: 0.5px solid #c9c9e4;
  }
  
  
  /* Responsive styles for mobile devices */
  @media screen and (max-width: 768px) {
    #chatPage .nav-container {
      display: none;
    }
  
    #homePage .notes-container,
    #chatPage .notes-container {
      display: none;
    }
  
    #homePage .notes-container.visible,
    #chatPage .notes-container.visible {
      display: flex;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 999;
    }
  
    #chatPage .chat-toolbar #feedbackBtn {
      display: block;
    }
  }
  
  @media screen and (max-width: 400px) {
  
    #chatPage .chat-header {
      flex: 1;
      font-size: 0.9rem;
      align-items: center;
    }
  
    #chatPage #openRoleplayBtn, #chatPage #editScenarioBtn,
    #chatPage #duplicateConvBtn, #chatPage #newConvBtn,
    #chatPage #editScenarioBtn {
      padding-top: inherit;
    }
  
    #chatPage .chat-header .header-bottom {
      display: none;
    }
  
    #chatPage, #transcriptPage {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
  
    #transcriptPage .chat-container,
    #chatPage .chat-container {
      display: flex;
      flex: 4;
      overflow: auto
    }
  
    #homePage .notes-container,
    #chatPage .notes-container {
      display: none;
      flex: 1;
      overflow: auto
    }
  
    #chatPage hr {
      display: none;
    }
  
    #transcriptPage .nav-container,
    #chatPage .nav-container {
      display: block;
      width: 100%;
      height: auto;
      position: relative;
      flex: 0 1 auto;
      align-items: center;
      justify-items: center;
      overflow: auto;
      display: flex;
      flex: row;
      flex-direction: row;
      white-space: nowrap;
    }
  
    #chatPage .nav-container .nav-controls {
      display: flex;
    }
    #chatPage .nav-container .nav-content,
    #chatPage .nav-container .nav-info {
      display: none;}
  
    #chatPage .nav-container a {
      float: left;
      padding: 6px 8px;}
  
    #chatPage .nav-container .whats-new {
      display: none;
    }
  
  }
  
  
  
  
  /********************* CHAT HEADER *********************/
  
  .form-header,
  .chat-header {
    flex: 1.5;
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
  }
  
  .chat-header .header-top {
    flex: 1;
    background: var(--rc-light-orange-color);
    color: var(--rc-purple-color);
    display: flex;
    align-items: center;
    width: 100%
  }
  
  
  .chat-header .header-top .title-container {
    display: flex;
    flex: 1;
    padding: 1%;
    font-weight: bold;
  }

  .title-container .title-top {
    display: flex;
  }

  .title #botSelect {
    border-radius: 10px;
    padding: 5px;
    border: 0.5px solid var(--rc-light-purple-color);
    color: var(--rc-purple-color);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .chat-header .header-top .title-container .title-bottom {
    font-weight: normal;
    padding: 5px 0px;
  }

  
  .title-container .title {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin: 0px 20px;
  }

  .chat-header .header-top .title-container img {
    width: 15%;
    height: 100%;
    align-self: center;
  }

  .title-container .logout-btn {
    text-decoration: none;
    color: var(--rc-orange-color);
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: bold;
  }

  .header-top hr {
    height: 100%;
    border: 0.3px solid var(--rc-purple-color);
    margin: 10px;
  }

  .conv-controls {
    align-items: flex-start;
  }
  
  .conv-controls a {
    text-decoration: none;
  }
  
  .title-container #copyScenarioLinkBtn,
  .conv-controls #openRoleplayBtn,
  .conv-controls #editScenarioBtn,
  .conv-controls #newConvBtn,
  .conv-controls #duplicateConvBtn {
    overflow: visible;
    border: none;
    color: white;
    background: none;
    margin-left: 5px;
  }
  
  #openRoleplayBtn .tooltip-nobs,
  #editScenarioBtn .tooltip-nobs,
  #copyScenarioLinkBtn .tooltip,
  #editScenarioBtn .tooltip,
  #newConvBtn .tooltip,
  #duplicateConvBtn .tooltip {
    position: absolute;
    margin-left: 3px;
    z-index: 2
  }
  
  #scenariosTable td #copyScenarioLinkBtn {
    background: none;
    border: none;
    margin-left: 3px;
  }
  
  #scenariosTable td #copyScenarioLinkBtn i {
    color: var(--rc-orange-color);
  }
  
  #showFormBtn,
  #showChatBtn,
  #clearConvBtn,
  #autoPlayBtn,
  #convSettingsBtn,
  #audioBtn,
  #rightPanelBtn,
  #showInstructionsBtn {
    border: none;
    color: var(--rc-purple-color);
    background: none;
    padding: 1%;
  }
  
  #expandBtn {
    border: none;
    background: none;
    color: var(--rc-purple-color);
    align-items: flex-start;
    margin-left: auto;
  }
  
  #selectedCharacterTxt {
    margin-top: 5px;
    font-size: 0.7rem;
    text-align: center;
    padding: 2px;
    border-radius: 3px;
    font-weight: bold;
    width: 120px;
    
  }
  
  .button-grid {
    display: grid;
    margin: 3px 10px 3px 3px;
    grid-gap: 15px;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chat-header .header-bottom {
    flex: 2 1 0;
    background: var(--rc-light-orange-color);
    color: var(--rc-purple-color);
    align-items: flex-start;
    padding: 1%;
    overflow-y: auto;
    display: flex;
  }
  
  .chat-header .header-bottom .instructions {
    font-size: 1rem;
    white-space: pre-line;
  }
  
  /********************* INFO/MESSAGES *********************/
  
  #info-messages {
    display: flex;
    margin: 5px 15px 5px 15px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--rc-med-purple-color);
    justify-content: space-between;
  }
  
  .show-messages-container {
    margin-left: auto;
    justify-content: flex-start;
    height: 2px
  }
  
  #showMessagesBtn {
    border: none;
    background: none;
    margin-left: auto;
    z-index: 2;
    position: relative;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 30px;
    min-width: 30px;
    height: 15px;
    min-height: 15px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 50%;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 80%;
    width: 40%;
    left: 8%;
    bottom: 10%;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: var(--rc-orange-color);
  }
  
  input:checked + .slider:before {
    transform: translateX(100%);
  }
  
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  
  
  /********************* CHAT BODY INC. MESSAGES *********************/
  
  
  #chatPage .chat-body {
    flex: 6;
    padding: 0% 0% 0.5% 0%;
    overflow: hidden;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .chatbot-message,
  .user-message {
    word-wrap: break-word;
    display: flex;
    align-items: center;
    width: 100%
  }
  
  .chatbot-message {
    align-items: flex-start;
  }
  
  .chatbot-message img {
    max-width: 20%;
    margin: 10px;
  }

  .chatbot-message .message-inner,
  .user-message .message-inner {
    display: inline-block;
    border-radius: 16px;
    padding: 8px 10px;
    max-width: 80%;
  }

  .chatbot-message .message-inner {
    background: #e4e4e4;
  }
  .chatbot-message .message-inner a {
    color: var(--rc-orange-color)
  }

  .chatbot-message .message-inner li {
    list-style-position: inside;
  }
  .chatbot-message .message-inner li>br {
    display: none;
  }
  .chatbot-message .message-inner li p {
    display: inline;
  }
  
  .user-message {
    text-align: right;
  }
  .user-message .message-inner {
    background: #146EF5;
    color: white;
  }

  .image-container {
    border-radius: 10px;
    padding: 5px;
    margin-top: 5px;
  }

  .video-container iframe {
    max-width: 100%;
    height: auto;
  }

  .prefix {
    font-weight: bold;
  }
  
  .moderated-message,
  .message-content {
    transform: translate(-50%);
    opacity: 0;
    animation: fade-in-left 0.3s ease-in-out both;
    flex: 1;
    margin: 10px 15px;
    max-width: 100%;
  }
  
  .moderated-message {
    font-size: 0.8rem;
    font-style: italic;
    margin: 0px 30px;
    flex: 0;
  }
  
  .message {
    margin-top: 5px;
    max-width: 100%;
  }

  .rag-references,
  .footer-references {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .user-message .messageFeedbackIcon.hide-icon {
    visibility: hidden;
    opacity: 0;
  }
  
  .user-message .extraIcon,
  .chatbot-message .extraIcon,
  .user-message .messageFeedbackIcon {
    transform: translate(50%);
    opacity: 1;
    animation: fade-in-right 0.6s ease-in-out both;
    margin-left: auto;
    margin: 0px 10px;
    visibility: visible;
    color: grey;
    background: none;
    border: none;
    font-size: 1rem;
  }
  
  .user-message .extraIcon,
  .chatbot-message .extraIcon {
    visibility: hidden;
    align-self: center;
  }
  
  .user-message .editMessageIcon {
    transform: translate(50%);
    opacity: 0;
    animation: fade-in-right 0.6s ease-in-out both;
    margin-left: auto;
    margin: 0px 10px;
    visibility: hidden;
    color: grey;
    background: none;
    border: none;
    font-size: 1rem;
  }
  
  .chatbot-message .playbackIcon {
    margin: 0px 10px;
    visibility: visible;
    display: inline-block;
    border: none;
    background: none;
    color: var(--rc-purple-color);
  }
  
  .chatbot-message .reportIcon,
  .chatbot-message .openReviewIcon,
  .chatbot-message .showTextIcon {
    transform: translate(50%);
    opacity: 0;
    animation: fade-in-right 0.6s ease-in-out both;
    display: inline-block;
    position: absolute;
    right: 0;
    visibility: hidden;
    color: var(--rc-light-purple-color);
    border: none;
  }

  td #openReviewIcon,
  .chatbot-message .openReviewIcon {
    visibility: visible;
    background: none;
    position: initial;
    margin: 5px;
    padding: 5px;
    color: var(--rc-orange-color);
  }

  .grade-select {
    font-size: 1rem;
    color: var(--rc-orange-color);
    border: 0.5px solid var(--rc-orange-color);
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    width: fit-content;
  }
  
  /* .chatbot-message:hover,
  .user-message:hover {
    background: #faf5ed;
  } */
  
  .user-message:hover .extraIcon,
  .chatbot-message:hover .extraIcon,
  .user-message:hover .messageFeedbackIcon,
  .user-message:hover .editMessageIcon,
  .chatbot-message:hover .reportIcon,
  .chatbot-message:hover .showTextIcon {
    visibility: visible;
  }
  
  .chat-end-container {
    background: var(--rc-light-orange-color);
    border: 1px solid var(--rc-orange-color);
    box-shadow: 0px 3px 3px var(--rc-orange-color);
    border-radius: 10px;
    margin: 1%;
    padding: 2%;
  }

  .chat-end-container h3 {
    text-align: center;
  }

  .chat-end-container .chat-end-ctas {
    display: flex;
    margin: 0% 0.5%;
    justify-content: center;
    align-items: stretch;
  }
  
  .chat-end-container .chat-end-ctas > .cta {
    margin: 0% 0.5%;
    border: solid 0.5px var(--rc-orange-color);
    background: var(--rc-orange-color);
    color: white;
    border-radius: 3px;
    display: flex;
    padding: 10px 20px;
    align-items: center;
  }
  
  .chat-end-container .chat-end-ctas > .cta:hover {
    box-shadow: 3px 3px 3px #f18971;
  }
  
  .chat-end-container a {
    text-decoration: none;
  }
  
  
  /********************* CHAT INFO *********************/
  
  .chat-info {
    display: flex;
    flex: 0.2;
    margin: 0% 0.5%;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
  }
  
  .chat-info .chat-status {
    flex: 1;
    margin: 0.5% 1.5%;
    display: flex;
    align-items: center;
  }
  
  .chat-info .chat-status .recording-status,
  .chat-info .chat-status .loading,
  .chat-info .chat-status .user-loading {
    flex: 1;
    font-weight: bold;
    display: flex;
  }
  
  .chat-info .chat-status .recording-status > .circle,
  .chat-info .chat-status .loading > .circle,
  .chat-info .chat-status .user-loading > .circle {
    height: 6px;
    width: 6px;
    background-color: var(--rc-purple-color);
    margin: 3px;
    border-radius: 50%;
  }
  
  .chat-info .chat-status .recording-status > .circle {
    background-color: var(--rc-orange-color);
  }
  
  .chat-info .chat-status .recording-status {
    color: var(--rc-orange-color);
  }
  
  .circle-1 {
    animation: blink 1s ease-in-out 0ms both infinite;
  }
  
  .circle-2 {
    animation: blink 1s ease-in-out 200ms both infinite;
  }
  
  .circle-3 {
    animation: blink 1s ease-in-out 400ms both infinite;
  }
  
  
  .spinner {
    border: 5px solid #f5f5f5; /* Light grey */
    border-top: 5px solid var(--rc-orange-color); /* Orange */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin-left: 10px;
  }
  
  #newConvBtn .tooltip,
  #audioBtn .tooltip,
  #feedbackBtn .tooltip,
  #convSettingsBtn .tooltip,
  .editMessageIcon .tooltip,
  .reportIcon .tooltip,
  .messageFeedbackIcon .tooltip,
  .extraIcon .tooltip,
  .showTextIcon .tooltip {
    visibility: hidden;
    background-color: var(--rc-purple-color);
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: normal;
    font-size: 0.75rem;
    width: max-content;
  }
  
  
  .extraIcon .tooltip,
  .messageFeedbackIcon .tooltip,
  .editMessageIcon .tooltip,
  .reportIcon .tooltip,
  .showTextIcon .tooltip {
    position: absolute;
    right: 130%;
    top: -2px;
  }
  
  .extraIcon .tooltip {
    background: #e2eef8;
    color: var(--rc-purple-color);
    width: 800px;
    text-align: left;
    z-index: 2;
    top: -100px;
  }
  
  
  #showFormBtn,
  #showChatBtn,
  #clearConvBtn,
  #feedbackBtn,
  #audioBtn,
  #saveChatBtn,
  #convSettingsBtn,
  #expandBtn {
    position: relative;
  }
  
  #showFormBtn .tooltip-nobs,
  #clearConvBtn .tooltip-nobs,
  #autoPlayBtn .tooltip-nobs  {
    position: absolute;
    right: 120%;
  
  }
  
  #transcriptFeedbackBtn .tooltip,
  #feedbackBtn .tooltip,
  #audioBtn .tooltip,
  #saveChatBtn .tooltip,
  #convSettingsBtn .tooltip {
    position: absolute;
    right: 120%;
    top: -20%;
  }
  
  
  #chatPage #feedbackBtn .tooltip {
    position: absolute;
    right: 113%;
    top: -13px;
  }
  
  /* Show the tooltip text when you mouse over the tooltip container */
  #showFormBtn:hover .tooltip-nobs,
  #showChatBtn:hover .tooltip-nobs,
  #openRoleplayBtn:hover .tooltip-nobs,
  #editScenarioBtn:hover .tooltip-nobs,
  #autoPlayBtn:hover .tooltip-nobs,
  #clearConvBtn:hover .tooltip-nobs,
  #copyScenarioLinkBtn:hover .tooltip,
  #newConvBtn:hover .tooltip,
  #editScenarioBtn:hover .tooltip,
  #duplicateConvBtn:hover .tooltip,
  #feedbackBtn:hover .tooltip,
  #audioBtn:hover .tooltip,
  #saveChatBtn:hover .tooltip,
  #convSettingsBtn:hover .tooltip {
    visibility: visible;
  }
  
  #feedbackBtn {
    display: none;
  }
  
  /********************* CHAT INPUT INC. TOOLBAR *********************/
  
  .chat-input {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 5px;
  }
  
  .chat-input .chat-controls {
    margin: 0.5%;
    border: 1px solid #cccc;
    border-radius: 10px;
    position: relative;
    left: -50px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-right: -40px;
  }
  
  .chat-input .chat-toolbar {
    flex: 0.5;
    color: grey;
    background: #f5f5f5;
    border-radius: 10px 10px 0px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .chat-input .chat-toolbar .toolbar-icons {
    display: flex;
    width: 100%;
    align-items: center;
  }
  
  .chat-toolbar .toolbar-icons .left-icons {
    display: flex;
  }
  
  .chat-toolbar .toolbar-icons .right-icons {
    display: flex;
    margin-left: auto;
    align-items: center;
  }
  
  .feedback-icon {
    display: flex;
    margin: 10px 10px 10px 5px;
  }
  
  .vl {
    border-left: 1px solid #cccc;
    margin: 0px 5px;
    height: 40px}
  
  .chat-input .chat-inputbar {
    flex: 1;
    align-items: center;
    display: flex;
  }
  
  .circle {
    height: 90px;
    width: 90px;
    background-color: var(--rc-orange-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    position: relative;
    z-index: 1;
  }
  
  .mic-icon :hover {
    cursor: pointer;
  }
  
  .mic-icon i {
    color: white;
  }
  
  #chatPage .chat-input .toolbar-icons,
  #chatPage .chat-input .chat-inputbar {
    margin-left: 45px
  }
  
  .chat-input .chat-inputbar .input-sec {
    flex: 1;
    align-items: center;
  }
  
  .chat-input .chat-inputbar .send {
    flex: 1;
  }
  
  #sendBtn{
    align-self: right;
    padding: 1%;
    color: grey;
  }
  
  #txtInput {
    padding: 1% 1% 0px 1%;
    border: none;
    outline: none;
    caret-color: black;
    font-size: 1rem;
    width: 100%;
    font-weight: normal;
    /* overflow: hidden; */
    resize: none; /* prevent manual resize */
    line-height: 1;
    max-height: 200px;
  }
  
  #txtInput:disabled {
    background-color: white;
  }
  
  .disabled {
    pointer-events: none;
  }
  
  #charsLeft {
    font-style: italic;
    font-size: 0.9rem;
    padding-right: 12px;
  }
  
  
  
  
  /********************* MODAL *********************/
  
  /* The Modal (background) */
  .invite-modal,
  .accept-modal,
  .feedback-modal,
  .instructions-modal,
  .customise-modal {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    margin: auto;
    transform: translate(-50%, -50%);
    width: 50%;
    max-height: 90%;
    z-index: 2; /* Sit on top */
    overflow: hidden;
    overflow-y: auto;
    background: white; /* Fallback color */
    border: 1px solid #cccc;
    border-radius: 10px;
    padding: 20px;
  }
  
  #feedbackModal {
    background: #eff2f4;
  }
  
  .invite-modal {
    position: fixed;
    left: 58%;
  }
  
  .feedback-modal ul {
    margin-left: 0.4em;
    padding-left: 20px;
  }
  
  .feedback-modal ul li {
    padding: 5px 6px;
  }
  
  .component-modal {
    width: max-content;
    position: fixed;
    left: 58%;
  }
  
  .component-modal #addComponentBtn {
    margin-left: auto;
  }
  
  .invite-modal {
    position: fixed;
    left: 58%;
  }
  
  .instructions-modal {
    /* display: block; */
    white-space: pre-wrap;
    width: 95%;
    height: max-content;
    padding: 0px 20px 5px 20px;
    max-height: 95%;
  }
  
  .instructions-modal .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .instructions-modal .title {
    text-align: center;
    flex-grow: 1; /* this will let the title take as much space as available, centering it */
  }
  
  .instructions-modal .criteria {
    white-space: normal;
  }
  
  .close-modal {
    margin-left: auto; /* this will push it to the right as much as possible */
    color: var(--rc-purple-color);
    font-size: 20px;
    font-weight: bold;
  }
  
  .feedback-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px
  }
  
  .title-container .beta,
  .nav-container .beta,
  .feedback-header .beta {
    border-radius: 5px;
    /* background:#33d096; */
    background: var(--rc-orange-color);
    color: white;
    font-weight: bold;
    padding: 3px 5px;
    margin-left: 5px;
    font-size: 0.9rem;
    height: max-content
  }
  
  .nav-container .beta {
    background: var(--rc-orange-color);
    font-size: 0.7rem;
  }
  
  .accept-modal,
  .instructions-modal .title,
  .feedback-modal .feedback-title,
  .feedback-modal .feedback-loader,
  .feedback-modal .feedback-loader-footer {
    text-align: center;
  }
  
  .notes-container .feedback-modal h4 {
    font-family: 'Lato', sans-serif;
  }
  
  .accept-modal {
    display: flex;
    flex-direction: column;
    width: 60%;
    z-index: 2;
  }
  
  .accept-modal .accept-title span {
    font-family: "House Slant", "Lato", sans-serif;
  }
  
  .accept-modal .accept-title #Beta {
    color: var(--rc-orange-color);
  }
  
  .accept-modal .accept-title {
    margin: 10px;
  }
  
  .accept-modal .accept-item {
    display: flex;
    margin: 15px 2px;
  }
  
  .accept-modal .accept-text {
    font-size: 0.9rem;
  }
  
  .accept-modal .accept-button {
    padding: 5px 10px;
    margin: 15px;
    background: var(--rc-orange-color);
    color: white;
    border: var(--rc-orange-color);
    max-width: fit-content;
    border-radius: 7px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .accept-modal .accept-button:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  
  .feedback-modal {
      white-space: pre-line;
      background: #e1e8ed;
      border: none;
      width: 80%
  }
  
  .hover-text {
    margin: 15px 0px;
    font-style: italic;
    color: #363544;
    font-size: 0.9rem;
    text-align: center;
  }
  
  .feedback-modal .criteria-element {
    margin: 0px 0px 10px 0px;
  }
  
  .feedback-modal .criteria-header {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  .feedback-modal .criteria-score {
    margin-left: 10px;
    font-style: bold;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: inline-block;  
  }
  
  .feedback-modal .criteria-score.insufficient_evidence {
    width: max-content;
    align-self: normal;
  }
  
  .feedback-modal .criteria-score-reasons,
  .feedback-modal .criteria-suggestions {
    font-size: 0.9rem;
  }
  
  .expand-icon {
    margin-left: auto;
  }
  
  .modal-button-disabled {
    color: var(--rc-orange-color);
    background: white;
    border: solid var(--rc-orange-color);
  }
  
  
  /* Modal Content/Box */
  .modal-content {
    font-size: 0.8rem;
  }
  
  /* The Close Button */
  .splitPaneBtn,
  .closeFeedback {
    color: var(--rc-purple-color);
    float: right;
    font-size: 20px;
    font-weight: bold;
  }
  
  .splitPaneBtn {
    font-size: 'initial';
    margin-right: 10px;
  }
  
  .customise-modal {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .customise-modal img {
    height: 80px;
  }
  
  .customise-modal .characters {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
  
  .customise-modal .character-title {
    font-weight: bold;
  }
  
  .customise-modal .character-button {
      border: solid white;
      background-color: white;
      padding: 3%;
  }
  
  .character-button.active {
    border: solid rgb(255, 255, 255);
  }
  
  .customise-modal .character-button:hover,
  .customise-modal .character-button:focus {
    background-color: #f7f9fc;
    border-radius: 7px;
  }
  
  .customise-modal .character-button:hover img,
  .customise-modal .character-button:focus img {
    height: 85px;
  }
  
  .customise-modal .character-level {
    /* font-style: italic; */
    margin-top: 5px;
  }
  
  
  .customise-modal .confirm-button {
    color: var(--rc-orange-color);
    background: white;
    border: solid var(--rc-orange-color);
    padding: 3px 7px;
    margin-top: 7px;
    border-radius: 4px;
  }
  
  .customise-modal .confirm-button:hover {
    color: white;
    background: var(--rc-orange-color);
    border: solid var(--rc-orange-color);
    padding: 3px 7px;
    margin-top: 7px;
    border-radius: 4px;
  }
  
  .customise-modal .active-button {
    color: white;
    background: var(--rc-orange-color);
    border: solid var(--rc-orange-color);
    padding: 3px 7px;
    margin-top: 7px;
    border-radius: 4px;
  }
  
  /********************* KEYFRAMES *********************/
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  
  @keyframes fade-in-right {
    0% {
      transform:  translate(50%);
      opacity: 0;
    }
    100% {
      transform: translate(0%);
      opacity: 1;
    }
  }
  
  
  @keyframes fade-in-left {
    0% {
      transform:  translate(-50%);
      opacity: 0;
    }
    100% {
      transform: translate(0%);
      opacity: 1;
    }
  }
  
  @keyframes blink  {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  
  /********************* USEFUL SETTINGS *********************/
  
  .fa-stack:hover,
  .fa-stack:focus,
  .fas:hover,
  .fas:focus,
  .fa-regular:hover,
  .fa-regular:focus,
  .fa-solid:hover,
  .fa-solid:focus,
  .closeFeedback:hover,
  .closeFeedback:focus,
  .close-modal:hover,
  .close-modal:focus {
    color: var(--rc-purple-color);
    text-decoration: none;
    cursor: pointer;
  }
  
  .nav-container .fa-solid:hover,
  .nav-container .fa-solid:focus {
  color: var(--rc-orange-color);
  text-decoration: none;
  cursor: pointer;
  }
  
  #chatOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: #c1c1c2;
    opacity: 0.5;
    z-index: 1
  }
  
  #chatOverlay.show-overlay {
    display: block;
  }
  
  #chatOverlay.readonly-chat {
    opacity: 0.25;
  }
  
  .spinning-icon {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 2;
    color: var(--rc-orange-color);
  }
  
  .spinning-icon img {
    width: 30%;
  }
  

  
  
  /* Add styles for the remaining messages counter */
  .remaining-messages {
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #e6e6e6;
    color: #333;
    margin: 8px 0;
    display: inline-block;
    text-align: center;
  }

  .remaining-messages.few-messages {
    background-color: #fff3cd;
    color: #856404;
  }

  .remaining-messages.very-few-messages {
    background-color: #f8d7da;
    color: #721c24;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0.7;
    }
    100% {
      opacity: 1;
    }
  }
  
  
