
/* Lighten body type (400 looks heavy, 300 too thin) */
body {
  font-weight: 350;
}

/* Make login page right panel background white */
div.bg-muted.overflow-hidden {
  background-color: white !important;
}

/* Oculta el botón de cambio entre claro/oscuro en los settings */
#theme-toggle,
.settings-theme-toggle {
  display: none !important;
}

/* Always underline markdown links (Chainlit only underlines them on hover by
   default). Covers links in message content and the trial side panel, which
   share the same `text-primary hover:underline` anchor component. */
a.text-primary {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Oculta la marca de agua “Built with Chainlit” */
/* .watermark {
  display: none !important;
} */


/* tooltip style starts here */


.sava-tip[data-tip] {
  position: relative;
  display: inline;
  margin: 0 2px;
  cursor: help;
  font-size: 1.08em;
  font-weight: 700;
  text-decoration: none;
  vertical-align: text-bottom;
}

.sava-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 999999;
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: min(360px, 80vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
  pointer-events: none;
  text-align: left;
  transition: opacity 120ms ease;
  white-space: normal;
}

.sava-tip[data-tip]::before {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(100% + 4px);
  z-index: 999999;
  visibility: hidden;
  opacity: 0;
  border: 6px solid transparent;
  border-bottom-color: #111827;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.sava-tip[data-tip]:hover::after,
.sava-tip[data-tip]:focus::after,
.sava-tip[data-tip]:hover::before,
.sava-tip[data-tip]:focus::before {
  visibility: visible;
  opacity: 1;
}

.sava-tip[data-tip],
.sava-tip[data-tip]::before,
.sava-tip[data-tip]::after {
  overflow: visible !important;
}

.prose,
.markdown,
[class*="markdown"],
[class*="Markdown"],
[class*="message"],
[class*="Message"],
[data-testid*="message"],
[data-testid*="Message"],
[class*="MessageContent"],
[class*="message-content"],
[class*="MessageContent"] ul,
[class*="MessageContent"] ol,
[class*="MessageContent"] li,
[class*="markdown"] ul,
[class*="markdown"] ol,
[class*="markdown"] li,
[class*="prose"] ul,
[class*="prose"] ol,
[class*="prose"] li {
  overflow: visible !important;
}

/* tooltip style ends here */

/* Guest header sign-up prompt */
.sava-guest-signup-prompt {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.sava-guest-signup-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-left: 0 !important;
}

.sava-guest-signup-action {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sava-guest-signup-details {
    display: none;
  }
}

/* Guest usage-policy consent */
.sava-guest-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(3px);
}

.sava-guest-consent-dialog {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #202121;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.sava-guest-consent-dialog h2 {
  margin: 0 0 20px;
  color: #202121;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.sava-guest-consent-subtitle {
  margin: 0 0 10px;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.sava-guest-consent-signup {
  margin: 0 0 24px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sava-guest-consent-signup a {
  color: #011f3f;
  font-weight: 600;
  text-decoration: underline;
}

.sava-guest-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sava-guest-consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #01366a;
  cursor: pointer;
}

.sava-guest-consent-row label {
  color: #374151;
  cursor: pointer;
}

.sava-guest-consent-row a {
  color: #011f3f;
  font-weight: 600;
  text-decoration: underline;
}

.sava-guest-consent-continue {
  width: 100%;
  margin-top: 24px;
  padding: 11px 18px;
  border: 1px solid #01366a;
  border-radius: 8px;
  background: #01366a;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sava-guest-consent-continue:hover:not(:disabled) {
  background: #012b56;
  border-color: #012b56;
}

.sava-guest-consent-continue:focus-visible,
.sava-guest-consent-signup a:focus-visible,
.sava-guest-consent-row input:focus-visible,
.sava-guest-consent-row a:focus-visible {
  outline: 3px solid rgba(1, 54, 106, 0.3);
  outline-offset: 2px;
}

.sava-guest-consent-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .sava-guest-consent-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .sava-guest-consent-dialog {
    padding: 22px 20px;
    border-radius: 14px 14px 8px 8px;
  }
}
