/* 
    styles.css
    Description: Main stylesheet for the website.
*/

header {
    width: 100%;
    min-width: 100%;
}

body {
    display: flex;
    height: 100vh;
    flex-direction: column;
    overflow-x: auto;
    min-width: max-content;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.box {
    padding: 10px;
    border: 1px solid #ccc;
}

.my-navbar {
    background-color: white;
    width: 100%;
    min-width: 100%;
    height: 80px;
    backdrop-filter: blur(10px);
    padding-left: calc(40px + 2vw);
    padding-right: calc(40px + 2vw);
    border-bottom: 1px solid #BAC5CC;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    margin-bottom: 0;
}
.logo-divider {
    margin-right: 20px;
    margin-left: 20px;
    height: 45px;
    border: 1px solid var(--Cold-1, #BAC5CC);
    background-color: #BAC5CC;
}
.website-title-start {
    margin-top: 16.93px;
    text-wrap: nowrap;
    word-wrap: nowrap;
    font-family: Space Mono;
    font-weight: 700;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0%;
    padding-right: 0;
    margin-right: 1ch;
    color: #BAC5CC;
    text-transform: uppercase;
}
.website-title-main {
    margin-top: 16.93px;
    font-family: Space Mono;
    font-weight: 400;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0%;
    text-wrap: nowrap;
    word-wrap: nowrap;
    padding-left: 0;
    margin-left: 0;
    color: #BAC5CC;
    text-transform: uppercase;
}

.logout {
    margin-left: 5%
}

div {
    /* overflow: visible; */
    border-radius: 5px;

}

code {
    color: black !important;
    background: #f7f9fa !important;
    border-radius: 6px !important;
    line-height: 1.5;
    display: inline-block;
    padding: 3px 6px;
    margin-top: 6px;
    width: fit-content;
    word-break: break-word;
}

code .limited-tests-query {
    width: default !important;
}

.no-background {
    border: none;
    background-color: transparent;
}

pre {
    text-wrap: wrap;
}

pre code {
    color: inherit !important;
    text-wrap: nowrap;
    overflow: auto;
}

ul, ol {
    padding-left: 1.75ch;
    display: table;
    margin-left: 1ch;
}

.footer{
    padding: 10px;
    background: #475059;
    width: 100%;
    height: 42px;
    flex-shrink: 0;
    padding-left: calc(40px + 2vw);
    padding-right: calc(40px + 2vw);
    display: flex;
    flex-direction: row;
    align-items: center;
}
.footer-text{
    color: #FFF;
    position: relative;
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    text-wrap: nowrap;
    top: 7px;
}
.version-number {
    margin-left: auto;
    padding-right: 10px;
}
.footer-icon {
    opacity: 50%;
    width: 32.68px;
    height: 17.46px;
}

table {
    border: 1px solid black;
    max-width: 100%;
    table-layout: auto;
    word-wrap: break-word;   /* Older syntax */
    word-break: break-word;  /* Modern and more effective */
}

th {
    background-color: #D0F0FB;
    border: 1px solid #A9B7C3;
    padding: 10px;
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    overflow-wrap: break-word; /* Preferred modern syntax */
    word-break: break-word;
}

td {
    border: 1px solid #A9B7C3;
    padding: 10px;
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    overflow-wrap: break-word; /* Preferred modern syntax */
    word-break: break-word;
}

.table3-override {
    background-color: #E5EAB3;
}

.caption {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    gap: 5px;
}
.caption-svg {
    transform: translateY(10px);
}
.no-margin {
    margin: 0 !important;
}

.to-dashboard-button {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 39px;
    width: 174px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    border: 1px solid #475059;
    background: #FFF;
    color: #000;
    text-align: center;
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    text-wrap: nowrap;
    margin-left: auto;
    margin-top: 23px;
    transform: translateY(-10px);
}
.go-back {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.go-button:not(:disabled):hover {
    background-color: #E2E8EC;
    cursor: pointer;
}
.go-button:disabled {
    opacity: 0.4;
}

.rotating {
  animation: spin 2s linear infinite;
  transform-origin: 26.5px 27.5px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.tokens-remaining-message-bold {
    font-weight: 700;
}

.page-token-title {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 0px !important;
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 0.5s ease;
}

.stay-disabled-button {
  pointer-events: none;     /* Prevent clicks */
  opacity: 0.6;             /* Dim it */
  cursor: not-allowed;      /* Change cursor */
}

.no-tokens-error {
    color: #ED6D75;
}

.loading-graphic-svg {
    min-width:54px;
    min-height: 54px;
}

.error-code {
    text-wrap-mode: wrap !important;
}

.error-code > * {
    color: #ff2b2b !important; /* Close to IDLE's tone */
}

.error-code .hljs-string {
    color: #ff2b2b !important; /* Close to IDLE's tone */
}

code.error-code {
    color: #ff2b2b !important; /* Close to IDLE's tone */
}

.hljs.error-code .hljs-string{
    color: #ff2b2b !important; /* Close to IDLE's tone */
}

.preserve-spacing {
    white-space: pre-wrap; /* or 'pre-line' if you prefer */
    word-wrap: break-word; /* for extra safety */
}

/* DevTools overlay container */
#devtools-overlay {
  position: fixed;
  top: 80px; /* same vertical start as .question-display padding-top */
  left: 0;
  width: 100vw;
  
  height: calc(100vh - 80px);
  background: #000000; /* solid black background */
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', Helvetica, Arial, sans-serif;
  border-radius: 0 !important;
  box-shadow: 0 0 15px rgba(31, 196, 242, 0.7); /* blue shadow #1fc4f2 */
  text-align: center;
  padding: 40px 80px;
  gap: 20px;
}

/* Warning title */
#devtools-overlay h2 {
  font-weight: 700;
      font-family: 'Space Mono', monospace;
      
  font-size: 28px;
  color: #ef656f;
  margin: 0;
  letter-spacing: 0;
}

/* Warning message */
#devtools-overlay p {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  color: #5bc3f4;
  max-width: 520px;
  margin: 0 auto;
}

.devtools-icon {
  font-size: 60px;
  color: #fea85f; /* soft orange from your brand palette */
  margin-bottom: 10px;
}

/* Optional blur and pointer-events on question-display when active */
.question-display.blur-active {
  filter: blur(5px);
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.devtools-icon {
  font-size: 70px;
  margin-bottom: 15px;
  animation: pulse 0.8s infinite;  
}

/* Apply Quill indentation even outside .ql-editor */
.ql-indent-1 { margin-left: 3em; }
.ql-indent-2 { margin-left: 6em; }
.ql-indent-3 { margin-left: 9em; }
.ql-indent-4 { margin-left: 12em; }
.ql-indent-5 { margin-left: 15em; }
.ql-indent-6 { margin-left: 18em; }
.ql-indent-7 { margin-left: 21em; }
.ql-indent-8 { margin-left: 24em; }
.ql-indent-9 { margin-left: 27em; }
.ql-indent-10 { margin-left: 30em; }

.ql-color, .ql-background {
    transform: translateY(-3px);
}
.ql-editor {
  font-size: 16px;
}