/* Definición de colores */
:root {
    --verde-oscuro: #001d0b;
    --negro-bullest: #000000;
    --negro-80: #121212;
    --verde-claro: #2dad62;
    --plateado: #c6babc;
    --naranja: #f08754;
    --blanco: #ffffff;
  }

/* Estilo base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.modern_nav_item{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
  border-radius: 0.75rem;
  color: white;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-color: #000000;
}

.modern_nav_item:hover {
  border: 1px solid transparent;
  border-radius: 0.75rem;
  /* Layer 1: fondo interno; Layer 2: borde con gradiente izquierda -> derecha */
  background-image: linear-gradient(#191919, #191919), linear-gradient(90deg, #000000, #2dad62);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  transition: background-image 0.2s ease, border 0.2s ease;
  color: white;
}

.modern_nav_item.active {
  border: 1px solid transparent;
  border-radius: 0.75rem;
  /* Layer 1: fondo interno; Layer 2: borde con gradiente izquierda -> derecha */
  background-image: linear-gradient(#191919, #191919), linear-gradient(90deg, #000000, #2dad62);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  color: white;
}

/* .main-bg{
background: #054d3b;
background: linear-gradient(90deg, rgba(5, 77, 59, 1) 0%, rgba(1, 19, 23, 1) 50%, rgba(5, 77, 59, 1) 100%);
} */

.main-bg{
  background: #03392C !important;
background: linear-gradient(90deg, rgba(3, 57, 44, 1) 0%, rgba(0, 14, 18, 1) 100%) !important;
}

.components-bg{
  background: rgba(10, 10, 0, 0.6);
  border: 1px solid rgba(38, 38, 38, 0.5);
}

.button-green-modern{
  background: linear-gradient(90deg, #00a63e 0%, #004018 100%);
}

.dash_input{
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #262B3A;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: white;
}

.dash_button{
  background: #016839;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: white;
}

.dash_card{
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #262B3A;
}

.dash_button:hover{
  background: #005f2c;
}

  .modern-checkbox  {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    background-color: #212121;
    border: 1px solid #333;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
  }

  .modern-checkbox:checked {
    background-color: #2DAD62;
    border-color: #2DAD62;
  }

  .modern-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
  }

  .modern-checkbox:hover {
    border-color: #2DAD62;
  }

  .modern-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 173, 98, 0.3);
  }

  /* Clase personalizada para casos específicos */
  .custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.2s ease;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
  }

/* Estilos Body por tema */
[data-theme="light"] {
  background-color: #ffffff;
  color: #000000;
}

[data-theme="dark"] {
  background-color: #121212;
  color: #f0f0f0;
}

[data-theme="classic"] {
  background-color: #ffede5;
  color: #333333;
}

[data-theme="business"] {
  background-color: #e6f0f8;
  color: #1a1a1a;
}

/* Ejemplo de botón personalizado para cada tema */

[data-theme="dark"] .btn-primary {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
}

[data-theme="dark"] .btn-primary {
  background-color: var(--verde-claro);
  color: var(--blanco);
}

[data-theme="classic"] .btn-primary {
  background-color: var(--naranja);
  color: var(--blanco);
}

[data-theme="business"] .btn-primary {
  background-color: var(--plateado);
  color: var(--negro-bullest);
} 

/* Barra izquierda del Menu */

[data-theme="light"] .br-izquierda {
  background-color: var(--negro-80);
  color: white;
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .br-izquierda {
  background-color: #121212;
  color: white;
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="classic"] .br-izquierda {
  background-color: var(--verde-oscuro);
  color: white;
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="business"] .br-izquierda {
  background-color: #121212;
  color: white;
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
} 

/* Estilos de tarjetas */

[data-theme="light"] .card {
  background-color: white;
  color: var(--negro-80);
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card {
  background-color: var(--negro-80);
  color: white;
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="classic"] .card {
  background-color: white;
  color: var(--verde-oscuro);
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="business"] .card {
  background-color: white;
  color: var(--negro-80);
  box-shadow: 0 16px 8px rgba(0, 0, 0, 0.2);
} 

  .card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #121212;
  }

/* Estilos del selector de Temas */

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.theme-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.theme-option.active {
  border-color: #2dad62;
  background-color: rgba(45, 173, 98, 0.1);
}

.palette {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.palette .square {
  width: 100%;
  height: 100%;
}

.palette .rect {
  grid-column: span 2;
  height: 100%;
}
  
  /* Contenedor principal */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Estilos de botones */
  .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
  }
  
  .btn-primary {
    background-color: #2dad62;
    color: #ffffff;
  }
  
  .btn-primary:hover {
    background-color: #f08754;
    color: #ffffff;
  }
  
  .btn-secondary {
    background-color: #c6babc;
    color: #000000;
  }
  
  .btn-secondary:hover {
    background-color: #2dad62;
    color: #ffffff;
  }
  
  /* Títulos */
  h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    color: #ffffff;
  }
  
  /* Formularios */
  .input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #c6babc;
    background-color: #000000;
    color: #ffffff;
  }
  
  .input-field:focus {
    border-color: #2dad62;
    outline: none;
  }
  
  /* Navbar */
  .navbar {
    background-color: #001d0b;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .navbar a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
  }
  
  .navbar a:hover {
    color: #2dad62;
  }

  .ai-agents {
    font-family: "Courier New", Courier, monospace;
    color: white;
    text-transform: uppercase; /* Opcional, por si quieres todo en mayúsculas */
    letter-spacing: 0.5em; /* Ajusta según el ancho necesario */
    display: block;
    text-align: center; /* Para que se alinee con el logo */
    font-size: 1.2rem; /* Ajusta el tamaño según sea necesario */
    margin-top: 5px; /* Espaciado respecto al logo */
 }

 .boton-estilo{
    background-color: #2dad62;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .boton-estilo:hover {
    background-color: #f08754;
    color: #ffffff;
 }

 .input-campo{
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 50px;
    border: 1px solid #c6babc;
    background-color: #c6babc;
    color: #000000;
 }

 .input-campo:focus {
    border: 1px solid #f08754;
    outline: none;
 }

 /* Estado de conexión: pendiente (naranja) y completada (azul) */
.status-pending {
    background-color: #f08754; /* Naranja complementario */
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 9999px;
    display: inline-block;
    font-size: 0.75rem;
  }
  
  .status-completed {
    background-color: #2dad62; /* Verde claro */
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 9999px;
    display: inline-block;
    font-size: 0.75rem;
  }
  
  /* Estilo para el contador de polling */
  #pollCounter {
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0; left: 0;
    right: 0; bottom: 0;
    transition: .4s;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  input:checked + .slider {
    background-color: #22c55e;
  }
  input:checked + .slider:before {
    transform: translateX(26px);
  }

/* ===== Scrollbar global personalizado ===== */
* {
  scrollbar-width: thin;                /* Firefox */
  scrollbar-color: #016839 #0D0D0D;     /* thumb color | track color */
}

/* Chrome, Edge, Safari, Opera */
*::-webkit-scrollbar {
  width: 10px;                          /* ancho del scrollbar vertical */
  height: 10px;                         /* alto del scrollbar horizontal */
}

*::-webkit-scrollbar-track {
  background: #0D0D0D;                  /* color del track (fondo) */
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #016839;                  /* color del “pulgar” del scroll */
  border-radius: 10px;
  border: 2px solid #0D0D0D;            /* crea un margen visual limpio */
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: #01a553;                  /* color al pasar el mouse */
}

/* Opcional: para scrollbars dentro de modales o divs específicos */
.modal::-webkit-scrollbar-thumb {
  background: #00b060;
}

/* ====== Estilo global para todos los SELECT ====== */
select {
  appearance: none;                 /* elimina el estilo por defecto del navegador */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #111;           /* fondo oscuro */
  color: #fff;                      /* texto blanco */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover y focus */
select:hover {
  border-color: #016839;
}

select:focus {
  outline: none;
  border-color: #01a553;
  box-shadow: 0 0 0 2px rgba(1,104,57,0.4);
}

/* Flecha personalizada del desplegable */
select::-ms-expand {
  display: none;
}

/* Agregar icono de flecha visual (globalmente) */
select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 0.75rem;
}

/* ====== Estilo del desplegable (opciones) ====== */
select option {
  background-color: #0D0D0D;        /* fondo del menú desplegable */
  color: #fff;                      /* texto blanco */
  padding: 0.5rem;
}

/* Hover dentro del menú */
select option:hover,
select option:checked,
select option:focus {
  background-color: #016839;
  color: #fff;
}