/* @import "./node_modules/font-awesome/css/font-awesome.min.css"; */
@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css";

/*
  Global Styles
*/

:root {
  --gray: #DCDCDC;
  --gray-secondary: #d1d1d1;
  --obscure-gray: rgb(95, 95, 95);
  --white-semitransparent: rgba(255, 255, 255, .8);
  --opaque: rgba(0, 0, 0, .05);
  --blue-help: #3465A4;
  --blue-nantic: #337ab7;
  --turtoise: rgb(53, 161, 186);
  --night: #2d2d2d;
}

.schedule {
  font-size: small;
  text-align: center;

  margin: 10px 8px;
  border-radius: 7px;

  background-color: var(--gray);

  height: 100%;
}

/* Source: https://codepen.io/flesler/pen/kdJmbw */
[contenteditable=true]:empty:before {
  content: attr(placeholder);
  display: block;
  pointer-events: none;
  color: var(--obscure-gray);
}

/*
  Surfly
*/

#cobrowsingPopupContainer .container-box {
  position: fixed;
  top: 30%;
  left: 0;

  display: inline-block;

  padding: 10px;
  border: 1px solid white;

  background: var(--white-semitransparent);
}

#cobrowsingPopupContainer .modal.fade .modal-dialog {
  /*controles the height of the popup position*/
  transform: translate(0, 35%);
}

#titles {
  margin-top: 15px;
}

#buttons {
  margin-top: 10px;
  text-align: center;
}

#conditions {
  font-size: 12px;
  text-align: justify;
}

#remote {
  margin-top: 15px;
  text-align: justify;
}

/*
  Navigation Bar
*/

/*
    Main Navigation Bar (Top)
  */

nav>.container-fluid>.navbar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;

  height: 50px;
}

nav>.container-fluid>.navbar-header>.navbar-toggle {
  margin-left: auto;
}

#title {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0 8px;

  height: 30px;
}

.logo {
  padding-left: 10px;
  width: 100%;
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  flex-shrink: 0;
}

/*
  Toast Seasonal Logos
*/

/* Seasonal toast container (top center) */
#nantic-toast-seasonal-container {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Seasonal toast styling with gradient background */
.nantic-toast-seasonal {
  max-width: 90vw;
  padding: 18px 26px;
  background: linear-gradient(135deg, #9DC183 0%, #35A1BA 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(157, 193, 131, 0.25), 0 0 1px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-30px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Show state for seasonal toast */
.nantic-toast-seasonal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hide animation for seasonal toast */
.nantic-toast-seasonal.hide {
  animation: toastOut 0.4s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-60px) scale(0.95);
  }
}

/*
    Buttons
  */

#buttonHelp,
#user-preferences,
#user-logout,
.container-fluid>.navbar-header>.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;

  transition: background-color .1s cubic-bezier(.22, .61, .36, 1);
}

.container-fluid>.navbar-header>.navbar-brand,
#user-logout {
  background-color: none;

  padding: 0;
  aspect-ratio: 1/1;
}

.container-fluid>.navbar-header>.navbar-brand:hover,
#user-logout:hover,
#buttonHelp:hover,
#user-preferences:hover {
  background-color: var(--opaque);
}

  /*
    Pages
  */

@media (min-width: 768px) {
  #main_navbar {
    height: 50px !important;
  }

  #tablist {
    height: 50px;
  }
}

#tablist {
  padding: 0;
  overflow-y: hidden;
}

#tablist span {
  overflow: hidden;
}

#main_navbar>ul:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 0 0 10px;

  height: 50px;
}

#tablist>li>a {
  height: 100%;
}

/*
    User preferences & logout
  */

#user-preferences a,
#user-logout a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  width: 100%;
  height: 100%;
}

#user-logout {
  height: 100%;
  aspect-ratio: 1/1;
}

#user-preferences {
  height: 100%;
}

#user-preferences>a {
  padding: 0 1vw 0 .5vw;
}

/*
  Original Menu
*/

#menu {
  padding: 0;
}

#menu .content-box {
  padding: 0 15px;
}

/*
  Help Menu
*/

#divHelp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  width: 100%;
  height: 100%;
  z-index: 0;
}

#divHelp>.error {
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

#accordion {
  flex: 1;

  margin: 0;

  width: 100%;
  overflow-y: auto;
}

/*
    Help Button
  */

#buttonHelp {
  position: relative;
  padding: 0;
  width: 50px;
  aspect-ratio: 1/1;
}

#buttonHelp div {
  mask: url('help_popup/img/help.svg') no-repeat center;
  transition: background-color .1s ease-in-out;
  background-color: var(--blue-nantic);

  width: 50%;
  aspect-ratio: 1/1;
}

#buttonHelp:hover div {
  background-color: white;
}

/*
    Accordion body
  */

#accordion>.panel>div>.panel-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;

  padding: 5px 0;

  transition: opacity .25s ease-in-out;
}

.panel>div>.panel-body>* {
  width: 95%;
}

.panel>div>.panel-body p,
.panel>div>.panel-body .schedule {
  margin: 5px 0;
}

.panel>div>.panel-body>a,
.panel>div>.panel-body button {
  width: fit-content;
}

/*
    Accordion buttons & divs
  */

/* To make the accordion button's content more aesthetic and aligned */
.panel-title>a {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

/* To put a space between the image and text in the accordion button's content */
.panel-title>a>img {
  margin: 0 10px 0 0;
  width: 24px;
  height: 24px;
}

/*
    Virtual Assistant
  */

/*
      Title
    */

#help_assistant {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-height: 60%;
}

#help_assistant>div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  border-bottom: var(--opaque) 1px solid;

  width: 100%;
}

#help_assistant>div>.btn-group>.dropdown>.dropdown-menu {
  /* In order to show the dropdown menu inside of the menu (and not outside, making it overflow), we need to override the 'left' attribute and put 'right' to 0 */
  right: 0;
  left: auto;
  text-align: right;
}

/* Favorites empty list message */
ul.dropdown-menu:empty::before {
  content: var(--fav-empty-msg, "");
  display: block;
  text-align: center;
  padding: 6px 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--bs-secondary-color, #6c757d);
}

#conversations {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#help_assistant>div:first-child>.btn-group {
  display: flex;
  flex-direction: row;

  padding: 0 4px 0 0;
}

#help_assistant>div:first-child>.btn-group>*,
#conversations {
  margin: 0;
}

#help_assistant>div>h4 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;

  font-size: 16px;
  margin: 0;
  padding: 8px 10px;

  width: 100%;
}

#help_assistant>div>h4::before {
  content: url('help_popup/img/ai.svg');
  width: 24px;
  aspect-ratio: 1/1;
}

/*
      Output messages
    */

#output {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  padding: 5px 0;
  gap: 5px;

  text-align: left;
  -webkit-user-select: text;
  user-select: text;

  scroll-behavior: smooth;
  scrollbar-width: thin;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

#output:empty {
  padding: 0;
}

#output>div *,
#output>div {
  overflow-wrap: anywhere;
}

.ai-question {
  background-color: var(--blue-nantic);
  border-radius: 15px;
  padding: 5px 14px;

  margin-right: 3px;

  color: white;
  width: fit-content;
  max-width: calc(100% - 40px);
  white-space: pre-line;
}

#output>.ai-question:not(:first-child) {
  margin-top: 10px;
}

.ai-answer {
  padding: 0 5px;
  width: 100%;
}

.ai-answer .choice-group {
  display: flex;
  flex-direction: row;
  padding: 5px 0;
  gap: 5px;
  width: 100%;
}

.ai-answer .choice-button {
  border: none;
  border-radius: 5px;
  padding: 4px 15px !important;

  color: var(--night);
}

#output p {
  margin: 0;
}

#output img {
  max-width: 100%;
}

#output hr {
  border-top: 1px solid var(--gray-secondary);
}

#output code {
  padding: .5px 4px;
}

#output pre code {
  padding: 0;
}

#output ol,
#output ul {
  padding: 0 0 0 25px;
}

#output blockquote {
  background-color: var(--opaque);
  border-left: 5px solid var(--gray-secondary);
  margin: 0;
  font-size: 14px;
}

#output .table-scrollable {
  background-color: var(--opaque);
  border-radius: 5px;

  margin: 0 0 10px 0;

  overflow-x: scroll;
  width: fit-content;
  max-width: 100%;
}

#output table {
  width: max-content;
}

#output th,
#output td {
  padding: 0 10px;
}

#output table td,
#output table th {
  border: 2px solid white;
}

#output table th {
  background-color: var(--gray-secondary);
  border-top: none;
  padding-top: 5px;
}

#output table td:first-child,
#output table th:first-child {
  border-left: none;
}

#output table td:last-child,
#output table th:last-child {
  border-right: none;
}

/* *:last-child is used for select 'tbody' or 'tfoot' */
#output table *:last-child tr:last-child td {
  border-bottom: none;
  padding-bottom: 5px;
}

#output .ai-answer>*:first-child {
  margin-top: 0;
}

/* In order to avoid a space mismatch between top and bottom... */
#output .ai-answer>*:last-child {
  margin-bottom: 0;
}

@keyframes loading-assistant {
  to {
    transform: scale(.6);
    background-color: var(--gray);
  }
}

#output .loading {
  animation: .5s ease-in-out infinite alternate loading-assistant;

  border-radius: 100px;
  background-color: var(--blue-nantic);

  margin-left: 5px;
  margin-right: auto;

  width: 30px;
  aspect-ratio: 1/1;
}

/*
        User input messages
      */

#help_assistant>div:last-child {
  position: relative;

  display: flex;
  flex-wrap: wrap;
  flex-direction: row;

  border-top: solid 2px rgb(225, 225, 225);

  transition: border .5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color .5s ease-in-out;

  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

#help_assistant>div:last-child:focus-within {
  border-top: solid 2px rgb(200, 200, 200);
}

#message {
  flex: 1;

  padding: 2px 5px;
  outline: none;

  resize: none;
  background: none;
  box-shadow: none;

  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;

  transition: background-color .25s ease-in;
}

#message.dragging,
#message.entering {
  margin: 2px 0;
  /* In order to be able to see the outline */
}

#message.dragging {
  background-color: var(--gray);
  outline: 2px dashed black;
}

#message.entering {
  background-color: var(--gray-secondary);
  outline: 2px solid black;
}

#help_assistant>div:last-child>div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#help_assistant>div:last-child>div:last-child,
#help_assistant>div:last-child>button {
  width: 8%;
  max-width: 30px;
}

#voice-to-text,
#upload-record {
  align-items: center;
}

#help_assistant>div:last-child>div:last-child>button {
  width: 100%;
}

#help_assistant>div:last-child button {
  display: flex;
  justify-content: center;

  background: none;
  box-shadow: none;

  transition: background-color .15s cubic-bezier(.22, .61, .36, 1);
  padding: 0;

  color: black;
  aspect-ratio: 1/1;
}

#help_assistant>div:last-child button:hover {
  background-color: var(--gray);
}

#help_assistant>div:last-child button:active {
  background-color: var(--blue-nantic);
}

#help_assistant>div:last-child button * {
  pointer-events: none;
  transition: color .15s cubic-bezier(.22, .61, .36, 1),
    filter .15s cubic-bezier(.22, .61, .36, 1),
    rotate .2s cubic-bezier(0.215, 0.610, 0.355, 1);
  width: 90%;
  aspect-ratio: 1/1;
}

#help_assistant>div:last-child button:active * {
  filter: invert(1);
}

#more-options {
  align-items: flex-end;
}

#more-options.active>img {
  rotate: -45deg;
}

#more-options-container {
  position: relative;
  top: 10%;

  display: flex;
  justify-content: space-around;
  align-items: center;

  opacity: 0;

  transition: top .4s cubic-bezier(.65, .05, .36, 1),
    opacity .3s linear,
    max-height .5s steps(1),
    visibility .5s steps(1);

  width: 100%;
  max-height: 0;
  visibility: collapse;
}

#more-options-container.active {
  top: 0;
  opacity: 1;
  transition: top .4s cubic-bezier(.65, .05, .36, 1),
    opacity .3s linear;
  max-height: 100%;
  visibility: visible;
}

#more-options-container>button {
  padding: 1%;

  width: 10%;
  max-width: 30px;
  aspect-ratio: 1/1;
}

#uploaded-files {
  display: flex;
  align-items: center;

  padding: 1%;
  gap: 1%;

  width: 100%;
}

#uploaded-files:empty {
  display: none;
  padding: 0;
  width: 0;
  height: 0;
  visibility: collapse;
}

#uploaded-files>div {
  position: relative;

  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;

  border-radius: 7px;
  background-color: var(--gray);

  width: 15%;
}

#uploaded-files>div>button {
  border: none;
  border-radius: 0 0 7px 7px;
  background-color: var(--obscure-gray) !important;

  width: 100%;
  aspect-ratio: auto !important;
}

#uploaded-files>div>button:hover {
  background-color: var(--gray) !important;
}

#uploaded-files>div>button:active {
  background-color: var(--blue-nantic) !important;
}

#uploaded-files>div>button:hover>img {
  filter: invert(0);
}

#uploaded-files>div>button>img {
  transition: filter .15s ease-in-out;
  filter: invert(1);
  rotate: 45deg;
  width: 18px !important;
  aspect-ratio: 1/1;
}

#uploaded-files>div>img {
  cursor: pointer;
  transition: filter .15s ease-in-out;
  width: 50%;
  min-width: 30px;
}

#uploaded-files>div>img:hover {
  filter: invert(.5);
}

#uploaded-files>div>img:active {
  filter: invert(1);
}

#uploaded-files>div>p {
  margin: 0;
  white-space: nowrap;
}

#uploaded-files>div:hover::after {
  content: attr(data-after);
  position: absolute;
  top: 105%;

  font-size: .75em;
  text-align: center;
  word-break: break-word;

  border-radius: 2.5px;
  background-color: var(--gray-secondary);

  width: 125%;
  z-index: 100;
}

/*
    eLearning
  */

#coll-elearning>div>a {
  text-align: left;
  cursor: pointer;
  padding: 0 8px 8px 8px;
  width: 100%;
}

@keyframes loading-elearning {
  0% {
    background-color: var(--gray-secondary);
  }

  100% {
    background-color: transparent;
  }
}

#coll-elearning.loading {
  animation: .5s infinite normal loading-elearning cubic-bezier(.55, .09, .68, .53);
}

#coll-elearning>div {
  opacity: 1;
}

#coll-elearning.loading>div {
  opacity: 0;
}

#tutorials {
  padding-left: 15px;
}

#tutorials:empty {
  margin: 0;
}

#shortcuts-tryton {
  font-size: small;
}

/*
  Monaco Code-Editor
*/

[id*=code-] {
  height: 400px;
  border: 1px solid black;
}

#updates-container {
  display: flex;
  flex-direction: column;
  padding: 5px;
  max-height: 400px;
  overflow-y: auto;
  position:relative;
}
.text-muted{
  color: var(--obscure-gray)!important;
}
.updates-list{
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 5px;
}
.update-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray);
  cursor: pointer;
  border-radius: 10px;
}

.update-item:hover {
  background-color: var(--opaque);
}

.update-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom:8px;
}

.update-date {
  font-size: 11px;
  color: var(--obscure-gray);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.update-tickets {
  font-size: 0.8em;
  color: #6c757d;
  white-space: nowrap;
}
.high{
  background-color:#ef4444;
}
.medium{
  background-color:#f59e0b;
}
.low{
  background-color:#10b981;
}

.update-subject {
  font-size: 14px;
  margin-bottom: 8px;
}
.unread{
  font-weight: 600;
}
.update-back {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    margin-bottom: 5px;
}

#btn-back {
    min-width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    background-color: var(--gray-secondary);
    background-image: url('help_popup/img/arrow-back.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    padding-left: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

#btn-text {
    transition: opacity 0.3s ease; 
    opacity: 1;
}

#btn-text.hidden {
    opacity: 0;
}


#btn-back:hover {
  background-color: var(--gray);
}

.update-content h1 {
    font-size: 2rem;
}

.update-content h2 {
    font-size: 1.75rem;
}

.update-content h3 {
    font-size: 1.5rem;
}


.update-content p {
    font-size: 1.25rem;
}

.update-content * {
    max-width: 100%;
    overflow-wrap: break-word;
}
#update-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
