/* ===== Scrollbar modo claro ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
    /* fondo claro */
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Scrollbar modo oscuro ===== */
body.dark ::-webkit-scrollbar-track {
    background: #111;
    /* fondo oscuro */
}

body.dark ::-webkit-scrollbar-thumb {
    background: #444;
    /* gris oscuro */
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ===== Caja del formulario nuevo chat ===== */

/* Caja del formulario Nuevo Chat */
.new-chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    /* se adapta al ancho del panel */
    max-width: 190px;
    /* igual que los bloques de chat */
}

/* Campo de texto */
.new-chat-form input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}

/* Botón Crear */
.new-chat-form button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 23%;
}

.new-chat-form button:hover {
    background-color: #0056b3;

}


/* ===== SIDEBAR ESTRUCTURA ===== */
.sidebar {
    width: 220px;
    min-width: 260px;
    max-width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f3f3;
    border-right: 1px solid #ddd;
}

/* 🔝 Parte superior fija */
.sidebar-top {
    padding: 16px 18px;
}

/* 📜 SOLO ESTA PARTE HACE SCROLL */
.sidebar-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 16px;
}

/* 🔻 Parte inferior fija */
.sidebar-bottom {
    padding: 16px 18px;
    border-top: 1px solid #ddd;
}

.thread-item {
    padding: 2px;
    background: #ffffff;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.thread-item a {
    text-decoration: none;
    font-weight: bold;
    color: #007acc;
    margin-left: 4px;
}

/* -------- RIGHT PANEL (CHAT) -------- */
.right-panel {
    flex-grow: 1;
    padding: 10px;
    max-width: calc(100vw - 260px); /* 👈 ancho real sin sidebar */
    overflow-x: hidden;             /* 🔒 nada puede empujarlo */
}

.msg-row {
    display: flex;
    margin-bottom: 10px;
}

.msg-row.left {
    justify-content: flex-start;
}

.msg-row.right {
    justify-content: flex-end;
}

.msg-user {
    background: #d2e3ff;
    padding: 10px;
    border-radius: 6px;
    max-width: 55%;
}

.msg-bot {
    background: #e8e8e8;
    padding: 10px;
    border-radius: 6px;
    max-width: 70%;
}

.msg-input {
    width: 80%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* -------- DARK MODE -------- */
body.dark {
    background: #1e1e1e;
    color: #f0f0f0;
}

body.dark .sidebar {
    background: #2a2a2a;
    border-color: #444;
}

body.dark .sidebar-bottom {
    border-top: 1px solid #444;
}

.sidebar-bottom {
    margin-top: auto;
}



body.dark .thread-item {
    background: #3a3a3a;
    border-color: #555;
}

body.dark .msg-user {
    background: #2a3f5f;   /* azul oscuro pero visible */
    color: #ffffff;
}


body.dark .msg-bot {
    background: #1f1f1f;   /* casi negro */
    color: #eaeaea;        /* texto claro */
}


body.dark input,
body.dark textarea {
    background: #222;
    color: white;
}

button {
    background: #007acc;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
}

.username-box h3 {
    margin: 10px 0 8px 0;
    font-size: 16px;
    word-break: break-word; /* evita que nombres largos se salgan */
}


.logout-btn {
    display: block;
    width: 90%;
    padding: 10px;
    background: #d9534f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    /*margin: auto;*/
    text-align: center;
    margin-top: 10px;
   
}

.crear-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* O el tamaño que quieras */
    padding: 10px;
    background: #007acc;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.toggle-btn {
    background: #4d4e4e;
    color: rgb(95, 94, 94);
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

body.dark .toggle-btn {
    background: #f3f1f1;
    color: #f0f0f0;
}

/* ------------login--------------- */
body {
    font-family: Arial, sans-serif;
    background-color: #eaeaea;
    /* fondo gris claro */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow-x: hidden; /* 🔒 evita que el layout se salga */
}

.login-container {
    background: white;
    width: 350px;
    padding: 25px;
    border-radius: 10px;
    margin-top: 60px;
    /* posición superior central */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    /* sombra externa */
    text-align: center;
}

.login-container h2 {
    margin-bottom: 15px;
}

.login-container input {
    width: 85%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
}

.login-container button {
    width: 90%;
    margin-top: 10px;
    background-color: #007acc;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.login-container .btn-login {
    font-size: 18px;
    font-weight: bold;
    
}


.login-container button:hover {
    background-color: #005fa3;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

.register-text {
    margin-top: 15px;
}

.register-text a {
    color: #007acc;
    font-weight: bold;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

/* --------Trabajando con borrado de hilos--------------- */
.thread-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.delete-form {
    margin: 0;
}

.delete-btn {
    border: none;
    background: transparent;
    color: red;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease-in-out;
    padding: 4px;
}

/*
🧠 Ahora solo aparece cuando el cursor está justo sobre el botón.
*/
.delete-btn:hover {
    opacity: 1 !important;
    color: darkred;
    font-weight: bold;
}

/*
🤫 Aparece discretamente cuando el cursor está cerca
*/
.thread-title:hover .delete-btn {
    opacity: 0.3;
}

/*
⚡ Cuando vas EXACTAMENTE a la “X” → se activa
*/
.delete-btn:hover {
    opacity: 1;
}

/* Estilo para anclar el selector de idioma en la esquina inferior izquierda */
.idioma-selector-fijo {
    position: fixed;
    bottom: 15px;
    left: 15px;

    display: flex;
    /* 🔑 CLAVE */
    align-items: center;
    /* centra vertical */
    gap: 10px;
    /* 🔑 ESPACIO ENTRE BOTÓN Y SELECTOR */

    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Cuando vas EXACTAMENTE a la “X” → se activa */
.botones-header {
    display: flex;
    align-items: center;
    gap: 12px;
}


.upgrade-link {
    padding: 8px 12px;
    background: #3a7afe;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

/* Estilos específicos para la página de login (Más específicos que el selector 'body' simple) */
body.body_login {
    /* CLAVES PARA APILAR Y CENTRAR */
    display: flex;
    flex-direction: column;
    /* CLAVE: Apila verticalmente (SAMSUNG, Login Form) */
    align-items: center;
    /* CLAVE: Centra horizontalmente */
    justify-content: center;
    /* CLAVE: Centra el grupo verticalmente en la pantalla */

    /* PROPIEDADES GENERALES DEL BODY DE LOGIN (Mantener o Unificar) */
    font-family: Arial, sans-serif;
    background-color: #eaeaea;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
}

/* Nota: Si existía un selector llamado 'body_login' sin el punto, elimínalo */

.login-container {
    background: white;
    width: 350px;
    padding: 25px;
    border-radius: 10px;
    /*margin-top: 60px;*/
    margin: 15px 0;
    /* posición superior central */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    /* sombra externa */
    text-align: center;
}

.login-container h2 {
    margin-bottom: 15px;
}

.login-container input {
    width: 85%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
}

.login-container button {
    width: 90%;
    margin-top: 10px;
    background-color: #007acc;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.login-container button:hover {
    background-color: #005fa3;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

.register-text {
    margin-top: 15px;
}

.register-text a {
    color: #007acc;
    font-weight: bold;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

/* ========================================================= */
/* ESTILOS ESPECÍFICOS PARA EL LOGO EN LA PÁGINA DE LOGIN */
/* ========================================================= */
.logo-header-login {
    /* 1. Posicionamiento */
    position: absolute;
    /* Permite moverlo respecto al body */
    top: 20px;
    /* 30px desde el borde superior */
    left: 20px;
    /* 40px desde el borde izquierdo */

    /* 2. Tamaño */
    width: 48px;
    /* Tamaño del icono, ajusta si es necesario (ej. 48px, 96px) */
    height: auto;
    /* Mantiene la proporción */

    /* 3. Estilos visuales (opcional) */
    /* border: 1px solid #ddd;  <-- Descomentar si quieres un borde */
    /* border-radius: 8px;     <-- Descomentar si quieres esquinas redondeadas */
}

/* ========================================================= */
/* ESTILOS PARA EL TEXTO SUPERIOR DE PRUEBA */
/* ========================================================= */
.texto-prueba-superior {
    font-size: 2.5em;
    font-weight: bold;
    color: #1F618D;

    /* Margen para separarlo del login-container */
    margin-bottom: 1px;

    /* Margen superior para separarlo del borde, ya que el logo es absoluto */
    margin-top: 50px;
}
/* ========================================================= */
/* Lema de la apps */
/* ========================================================= */
.lema-de-la-app {
    font-size: 1.5em;
    font-weight: bold;

    /* Margen para separarlo del login-container */
    margin-bottom: 1px;

    /* Margen superior para separarlo del borde, ya que el logo es absoluto */
    margin-top: 10px;

}

/* ===== DARK MODE BASE ===== */
body.dark {
    background-color: #121212;
    color: #eaeaea;
}

/* Login específico */
body.dark .login-container {
    background-color: #1e1e1e;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

body.dark input {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
}

body.dark button {
    background-color: #333;
    color: #fff;
}

/* Boton de idioma */
.lang-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    cursor: pointer;
}

/* REGISTER PAGE ONLY */
body.register-page {
    background: #e6e6e6;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    font-family: Arial, sans-serif;

}

body.register-page .register-box {
    width: 350px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, .25);
    /* sombra suave */
    text-align: center;
}

body.register-page input {
    width: 90%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

body.register-page label {
    display: block;
    text-align: left;
    margin-left: 10px;
    margin-top: 5px;
    font-weight: bold;
}

body.register-page button {
    background: #007acc;
    color: white;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* DARK MODE */
body.register-page.dark {
    background: #1e1e1e;
}

body.register-page.dark .register-box {
    background: #2a2a2a;
}

/* Mensajes del chat */
.msg-bot.markdown {
    line-height: 1.5;
}

.msg-bot.markdown ul,
.msg-bot.markdown ol {
    margin: 8px 0;
    padding-left: 20px;
}

.msg-bot.markdown li {
    margin-bottom: 6px;
}

.msg-bot.markdown h2,
.msg-bot.markdown h3 {
    margin-top: 12px;
}

/* Botón Google */

.google-btn {
    display: block;
    width: 90%;              /* 👈 aquí controlas el ancho */
    margin: 15px auto 0;     /* 👈 centra horizontalmente */
    padding: 10px;
    background: #007acc;
    color: white;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-sizing: border-box;  /* asegura que padding no rompa el ancho */
}

.google-btn:hover {
    background: #005fa3;
}

/* ===================================================== */
/*  FIX DEFINITIVO – ALINEACIÓN CHAT USUARIO / BOT       */
/* ===================================================== */
.conversation {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 210px);
    max-width: 900px;
    margin: auto;
}

/* La fila DEBE ocupar todo el ancho */
.msg-row {
    width: 100%;
    display: flex;
}

/* Usuario → derecha */
.msg-row.right {
    justify-content: flex-end;
}

/* Bot → izquierda */
.msg-row.left {
    justify-content: flex-start;
}

/* Burbuja usuario */
.msg-user {
    max-width: 70%;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Burbuja bot */
.msg-bot {
     max-width: 70%;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.google-btn2 {
    padding: 10px;
    font-size: 18px;
    color: white;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
}

/* ========================================= */
/*      TÍTULO DEL CHAT (COMPACTO)           */
/* ========================================= */

.chat-title {
    font-size: 18px;              /* más pequeño */
    font-weight: 600;
    color: #5a6d8a;               /* distintivo, suave */
    margin: 0 0 6px 0;            /* reduce espacio vertical */
    padding: 0;
    line-height: 1.2;
    /* 👇 LÍNEA SEPARADORA */
    border-bottom: 1px solid #dcdcdc;
}

/* Dark mode */
body.dark .chat-title {
    color: #9bb3d6;
}

/* Status del chat */
.chat-status {
    font-size: 13px;
    color: #777;
    margin: 6px 0;
}

.chat-status.hidden {
    display: none;
}

body.dark .chat-status {
    color: #aaa;
}

/* ========================================= */
/*        FORMULARIO DE ENVÍO DE MENSAJES     */
/* ========================================= */

#chat-form {
    display: flex;
    flex-direction: column;
    gap: 4px;              /* 👈 espacio exacto */
    margin-top: 6px;
}

#chat-form textarea.msg-input {
    width: 100%;
    margin: 0;
    resize: none;
}

#chat-form button {
    align-self: flex-end;  /* 👈 botón a la derecha */
    margin: 0;
    padding: 8px 14px;
}

/* =============================== */
/*   AJUSTE ANCHO INPUT DEL CHAT   */
/* =============================== */

#chat-form {
    max-width: 900px;      /* 👈 ajusta aquí */
    margin-left: auto;
    margin-right: auto;
}

#chat-form textarea.msg-input {
    width: 100%;
}

/* ========================================= */
/*        HEADER DEL CHAT (TÍTULO + AVATAR) */
/* ========================================= */
/* ========================================= */
/*   HEADER DEL CHAT (TÍTULO + AVATAR)       */
/* ========================================= */

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 8px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #dcdcdc;
}

/* Título a la izquierda */
.chat-title {
    font-size: 16px;
    font-weight: 600;
    color: #5a6d8a;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Avatar a la derecha */
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;   /* 🔥 ESTO evita que se pegue o se salga */
    flex-shrink: 0;      /* 🔑 evita que flex lo aplaste */
    cursor: pointer;
    border: 2px solid #ddd;
}

/* Dark mode */
body.dark .chat-title {
    color: #9bb3d6;
}

body.dark .chat-header {
    border-bottom: 1px solid #444;
}

/*-Recuperar y resetear contraseña---*/
.center-box {
    width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,.15);
}

.center-box h2 {
    text-align: center;
}

.help-text {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.alert-error {
    background: #ffd6d6;
    color: #900;
}

.alert-success {
    background: #d6ffd6;
    color: #065f06;
}

.links {
    margin-top: 15px;
    text-align: center;
}

/*Para el boton de olvidaste tu contraseña*/
.forgot-password {
    text-align: center;
    margin-bottom: 15px;
}

.forgot-password a {
    font-size: 18px;
    color: #007acc;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ================================
   BILLING PAGE ONLY
================================ */
.billing-center-box {
    width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    color: #222;
}

/* DARK MODE SOLO BILLING */
body.dark .billing-center-box {
    background: #1f1f1f;
    color: #f0f0f0;
}

.billing-center-box-text {
    font-weight: bold;
    font-size:14px; 
    text-align:center; 
    color:#555;
}

.terms-box{
    max-width:800px;
    margin:auto;
    font-family:Arial;
    width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    color: #222;
}

body.dark .terms-box{
    background: #222;
    border-radius: 10px;
    color: #f0f0f0;

}

.privacy-box{
    max-width:800px;
    margin:auto;
    font-family:Arial;
    width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    color: #222;
}

body.dark .privacy-box{
    background: #222;
    border-radius: 10px;
    color: #f0f0f0;
}

.refunds-box{
    max-width:800px;
    margin:auto;
    font-family:Arial;
    width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    color: #222;
}

body.dark .refunds-box{
    background: #222;
    border-radius: 10px;
    color: #f0f0f0;
}

.activar-plan-btn{
    margin-top: 4px;
}

/* ================================
   Upload Documents- form
================================ */

.upload-document-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.upload-document-form input[type="file"] {
    font-size: 0.9em;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 10px 0 12px 0;
    font-size: 14px;
}

body.dark .alert-warning {
    background: #3a2f00;
    color: #ffdd88;
}

/* ===============================
   BLOQUE DE ESCRITURA DEL CHAT
================================ */

.chat-message-form {
    width: 100%;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
}

body.dark .chat-input-wrapper {
    background: #1f1f1f;
    border-color: #333;
}

.msg-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    padding: 6px;
    font-size: 0.95em;
    background: transparent;
    color: inherit;
}

.send-btn {
    padding: 6px 14px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}


/* ===============================
   CENTRAR BOTÓN DE UPLOAD
================================ */

.upload-center-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.upload-document-form {
    display: inline-flex;
}

.upload-icon {
    cursor: pointer;
    font-size: 1.2em;
}

.msg-bot pre {
    max-width: 100%;
    overflow-x: auto;     /* 👈 scroll horizontal SOLO en el código */
    white-space: pre-wrap;
    word-break: break-word;
    background: #111;
    color: #eee;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
}

.msg-bot code {
    word-break: break-word;
    white-space: pre-wrap;
}

.msg-bot table {
    max-width: 100%;
    display: block;          /* 🔑 */
    overflow-x: auto;        /* 🔑 */
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
}

.msg-bot img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ===============================
   BOTÓN ENVIANDO (ESTADO ACTIVO)
================================ */
/* ===============================
   BOTÓN ENVIANDO (ESTADO ACTIVO)
================================ */

/* Estado normal del botón enviar */
.send-btn {
    background-color: #007acc;
    color: #fff;
    transition: background-color 0.2s ease;
    height: 35px; /* Ajusta este valor según sea necesario */
    min-width: 85px; /* Mantiene el ancho mínimo */
}

/* Cuando el formulario se envía */
.send-btn:disabled {
    background-color: #28a745 !important; /* verde */
    border-color: #28a745 !important;
    color: #fff !important;
    cursor: wait;
}

/* 🌙 Dark mode */
body.dark .send-btn {
    background-color: #1e6ed8;
}

body.dark .send-btn:disabled {
    background-color: #1f7a3a !important;
}


/* =========================================
   FIX TEXTO BOTÓN ENVIANDO (SIN JS)
========================================= */

/* Estado normal */
.send-btn {
    position: relative;
    min-width: 85px;
    
}

/* Cuando está enviando */
.send-btn:disabled {
    color: transparent !important;   /* oculta texto original */
}

/* Texto "Enviando..." */
.send-btn:disabled::after {
    content: attr(data-sending-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}


/* ===============================
   TABLAS DENTRO DEL CHAT
=============================== */

.table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

/* La tabla no rompe el chat */
.table-wrapper table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

/* Evita texto apilado */
.table-wrapper th,
.table-wrapper td {
    white-space: nowrap;
    padding: 8px 12px;
    text-align: left;
}

/* Scroll discreto */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

:root {
    --link-color: #2563eb;       /* azul moderno visible en claro */
    --link-hover: #1d4ed8;
}

.dark {
    --link-color: #60a5fa;       /* azul más claro para oscuro */
    --link-hover: #93c5fd;
}
