/* ================================
   THEME TOKENS
   ================================= */

/* Light (por defecto) */
:root {
  /* Superficies */
  --app-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --card: #ffffff;

  /* Texto */
  --text: #202529;
  --text-muted: #6c757d;

  /* Bordes y sombras */
  --border: #e2e2e2;
  --shadow-1: 0 2px 10px rgba(0,0,0,0.2);

  /* Paleta de marca */
  --primary: #6f42c1;
  --secondary: #6c757d;
  --success: #81C784;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #64B5F6;
  --tertiary: #FFF59D;
  --btn-primary:#6f42c1;
  /* Gradientes marca */
  --gradient-violet-start: #8A2BE2;
  --gradient-violet-end:   #6495ED;
  --bg-canvas:#ffffff;
  /* Footer / íconos */
  --footer-bg: #ffffff;
  --footer-text: var(--text);
  --icon-filter: brightness(0) saturate(100%) invert(22%) sepia(63%) saturate(2556%) hue-rotate(245deg) brightness(90%) contrast(95%);
}

/* Dark */
html[data-bs-theme="dark"] {
  /* Fondo estilo imagen: mezcla radial + linear */
  /* Tokens para afinar el look del fondo oscuro */
  --dark-bg-1: #0b0820;   /* borde exterior (casi negro violáceo) */
  --dark-bg-2: #1a0f3b;   /* violeta profundo */
  --dark-bg-3: #3b166a;   /* violeta medio */
  --dark-bg-4: #6c3ac7;   /* highlight sutil */

  --app-bg:
    radial-gradient(1200px 800px at 50% -10%, rgba(108,58,199,0.35), rgba(108,58,199,0) 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(58,22,122,0.5), rgba(58,22,122,0) 55%),
    radial-gradient(900px 600px at 110% 35%, rgba(59,22,106,0.45), rgba(59,22,106,0) 55%),
    linear-gradient(180deg, var(--dark-bg-2) 0%, var(--dark-bg-1) 100%);

  --surface: #12151a;
  --surface-2: #171b21;
  --card: #161a20;

  --text: #e6e6e6;
  --text-muted: #949494;

  --border: #2a2f37;
  --shadow-1: 0 2px 10px rgba(121, 121, 121, 0.6);

  /* Paleta en dark (ligeramente ajustada) */
  --primary: #cdbafa;
  --secondary: #383c41;
  --success:  #4CAF7D;  /* verde más profundo, no tan flúor */
  --warning:  #E6B84C;  /* dorado cálido, no amarillo puro */
  --danger:   #E06A6A;  /* rojo suave, menos neón */
  --info:     #5BA6D9;  /* celeste apagado */
  --tertiary: #D9C85B;  /* amarillo mostaza, menos brillante */
  --btn-primary: #431f83;
  --gradient-violet-start: #6c3ac7;
  --gradient-violet-end:   #436fb8;
--bg-canvas:
  radial-gradient(1200px 800px at 50% -10%, rgba(108,58,199,0.15), rgba(108,58,199,0) 60%),
  radial-gradient(900px 600px at -10% 30%, rgba(58,22,122,0.25), rgba(58,22,122,0) 55%),
  radial-gradient(900px 600px at 110% 35%, rgba(59,22,106,0.2), rgba(59,22,106,0) 55%),
  linear-gradient(180deg, #100a25 0%, #05030f 100%);


  /*--footer-bg: transparent; /* deja ver el fondo “galaxy” */
  --footer-text: var(--text);
  --icon-filter: brightness(0) invert(85%);
   .bg-primary-custom {
  background: 
    radial-gradient(1200px 800px at 50% -10%, rgba(108,58,199,0.35), rgba(108,58,199,0) 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(58,22,122,0.5), rgba(58,22,122,0) 55%),
    radial-gradient(900px 600px at 110% 35%, rgba(59,22,106,0.45), rgba(59,22,106,0) 55%),
    linear-gradient(180deg, #1a0f3b 0%, #0b0820 100%);
  color: #fff; /* opcional, para asegurar contraste */
   }
  .botonera .option-item .option-circle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 5px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border);
  background: #35263c;
  color: var(--text);
}
}

/* Transición suave (opcional) */
html, body, * {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* ================================
   TU CSS (migrado a variables)
   ================================= */

.bg-offcanvas-custom{
  background: var(--bg-canvas);
}

body{
  padding-bottom: 120px;
  overflow-x: hidden;
  background: var(--app-bg);
  color: var(--text);
  min-height: 100dvh;           /* cubre alto de la ventana en móviles también */
  background: var(--app-bg);
  background-repeat: no-repeat;
  /* un attachment por cada capa de tu --app-bg (4 en tu caso) */
  background-attachment: fixed, fixed, fixed, fixed;
  background-size: cover;       /* ayuda a evitar cortes */
}

.body-custom{
  /*background: linear-gradient(to bottom, var(--primary) 15vh, var(--surface) 40vh);*/
}

/******************************** Warning class *****************************/
.text-warning-custom{ color: var(--warning); }
.bg-warning-custom{ background-color: var(--warning) !important; }
.border-warning-custom{ border-color: var(--warning) !important; }
.text-muted-custom {
  color: var(--text-muted) !important;
}
.btn-outline-warning-custom {
  border-color: var(--warning) !important;
  color: var(--warning) !important;
}
.btn-outline-success-custom:hover {
  background-color: var(--success) !important;
  color: #FFFFFF !important;
}
.btn-warning-custom{
  background-color: var(--warning);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-warning-custom:hover{
  background-color: color-mix(in oklab, var(--warning) 85%, black 15%);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-warning-custom:active{
  background-color: color-mix(in oklab, var(--warning) 75%, black 25%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.btn-warning-custom:disabled{
  background-color: #fff8e3;
  color: #868686;
  border-color: transparent;
}

/******************************** Danger class *****************************/
.text-danger-custom{ color: var(--danger); }
.bg-danger-custom{ background-color: var(--danger) !important; }
.border-danger-custom{ border-color: var(--danger) !important; }
.btn-danger-custom{
  background-color: var(--danger) !important;
  color: #FFFFFF !important;
}
.btn-outline-danger-custom {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}
.btn-danger-custom:hover{
  background-color: color-mix(in oklab, var(--danger) 85%, black 15%);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-danger-custom:active{
  background-color: color-mix(in oklab, var(--danger) 75%, black 25%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.btn-danger-custom:disabled{
  background-color: #fff8e3;
  color: #868686;
  border-color: transparent;
}

/******************************** Success class *****************************/
.text-success-custom{ color: var(--success); }
.bg-success-custom{ background-color: var(--success) !important; }
.border-success-custom{ border-color: var(--success); }
.btn-outline-success-custom {
  border-color: var(--success) !important;
  color: var(--success) !important;
}
.btn-success-custom{
  background-color: var(--success) !important;
  color: #FFFFFF;
  border-color: transparent;
}
.btn-success-custom:hover{
  background-color: color-mix(in oklab, var(--success) 85%, black 15%);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-success-custom:active{
  background-color: color-mix(in oklab, var(--success) 75%, black 25%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.btn-success-custom:disabled{
  background-color: #fff8e3;
  color: #868686;
  border-color: transparent;
}

/******************************** color principal class *****************************/
.text-primary-custom{ color: var(--primary); }
.bg-primary-custom{ background-color: var(--primary) !important; }
.border-primary-custom{ border-color: var(--primary); }
.btn-outline-primary-custom {
  border-color: var(--primary);
   color: var(--primary);
}

.btn-primary-custom{
  background-color: var(--btn-primary);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-primary-custom:hover{
  background-color: color-mix(in oklab, var(--primary) 85%, black 15%);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-primary-custom:active{
  background-color: color-mix(in oklab, var(--primary) 75%, black 25%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.btn-primary-custom:disabled{
  background-color: #fff8e3;
  color: #868686;
  border-color: transparent;
}

/******************************** color secundario class *****************************/
.text-secondary-custom{ color: var(--secondary); }
.bg-secondary-custom{ background-color: var(--secondary) !important; }
.border-secondary-custom{ border-color: var(--secondary); }
.btn-secondary-custom{
  background-color: var(--secondary);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-secondary-custom:hover{
  background-color: color-mix(in oklab, var(--secondary) 85%, black 15%);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-secondary-custom:active{
  background-color: color-mix(in oklab, var(--secondary) 75%, black 25%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.btn-secondary-custom:disabled{
  background-color: #fff8e3;
  color: #868686;
  border-color: transparent;
}

/******************************** color tertiary class *****************************/
.text-tertiary-custom{ color: var(--tertiary); }
.bg-tertiary-custom{ background-color: var(--tertiary); }
.border-tertiary-custom{ border-color: var(--tertiary); }
.btn-tertiary-custom{
  background-color: var(--tertiary);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-tertiary-custom:hover{
  background-color: color-mix(in oklab, var(--tertiary) 85%, black 15%);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-tertiary-custom:active{
  background-color: color-mix(in oklab, var(--tertiary) 75%, black 25%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.btn-tertiary-custom:disabled{
  background-color: #fff8e3;
  color: #868686;
  border-color: transparent;
}

/******************************** info class *****************************/
.text-info-custom{ color: var(--info); }
.bg-info-custom{ background-color: var(--info); }
.border-info-custom{ border-color: var(--info); }
.btn-info-custom{
  background-color: var(--info);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-info-custom:hover{
  background-color: color-mix(in oklab, var(--info) 85%, black 15%) !important;
  color: #FFFFFF !important;
  border-color: transparent;
}
.btn-info-custom:active{
  background-color: color-mix(in oklab, var(--info) 75%, black 25%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.btn-info-custom:disabled{
  background-color: #fff8e3;
  color: #868686;
  border-color: transparent;
}

/********************* Otros fondos **************************************/
.bg-gradient-violet{
  background: linear-gradient(to right, var(--gradient-violet-start), var(--gradient-violet-end));
}

/******************************** text class *****************************/
.text-light-custom{ color: #eeeeee; }
.text-dark-custom{ color: var(--text) !important; }
.text-size-small{ font-size: 12px; }
.text-disable-custom{ color: #aaaaaa; }

/************************ cutom bubbles ************************/
.card{
  box-shadow: var(--shadow-1);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--bg-canvas);
  color: var(--text);
  border: 1px solid var(--border);
}

/*header*/
.header-custom {
  padding: 5px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

/************************ circle options ************************/
.botonera{
  align-items: center;
  justify-content: space-around;
  width: 100%;
  flex-wrap: wrap;
  display: flex;
}
.botonera .option-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(33.33% - 20px);
  margin-bottom: 15px;
  text-decoration: none;
}
.botonera-small .option-item-small{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  text-decoration: none;
}
.botonera .option-item-small .option-circle,
.botonera .option-item .option-circle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 5px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.botonera .option-item-small .option-circle{ width: 40px; height: 40px; }

.option-circle .option-img {
  width: 28px; height: 28px;
  object-fit: contain;
}
.botonera .option-item .option-text {
  font-size: 0.8rem;
  text-align: center;
  word-wrap: break-word;
  white-space: normal;
}

/*************************** ULTIMA COMPRA *****************/
.lastbuy-list{
  list-style: none;
  padding-left: 0px;
  margin-bottom: 0px;
}
.lastbuy-list > .item::after { display: block; clear: both; content: ""; }
.lastbuy-list .item { margin-top: 15px; }
.lastbuy-list .item .lastbuy-img img{ height: 50px; width: 50px; }
.lastbuy-img img{ height: 50px; width: 50px; object-fit: cover; }
.lastbuy-list .item .lastbuy-info{ margin-left: 60px; }
.lastbuy-list .item .lastbuy-info .lastbuy-description{
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/********************** FOOTER **************************/
.footer-mp {
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 3px 0;
  z-index: 1100;
  height: 50px;
  background: var(--bg-canvas);
  color: var(--footer-text);
}
.footer-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  text-align: center;
  width: 20%;
  word-wrap: break-word;
  white-space: normal;
  margin-bottom: 0px;
}
.footer-icon i {
  font-size: 1.4rem;
  margin-bottom: 0px;
}
.btn-scan {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--secondary);
  font-size: 25px;
  position: relative; top: 3px;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--text);
}
.btn-scan i{
  margin-bottom: 0px !important;
  font-size: 28px;
}
.footer-mp .footer-icon.active.btnSumar{ color: #388E3C; }
.footer-mp .footer-icon.active.btnRestar{ color: var(--danger); }
.footer-mp .footer-icon.active.btnMod{ color: var(--warning); }
.footer-mp .footer-icon.btnHome{ color: var(--primary); }

a{ text-decoration: none; color: inherit; }

/***************** Tarjetas Stock **************/
.card-stock-image{ max-height: 55px; text-align: center; }
.card-stock-image .img-fluid { max-height: 100%; }
.swipe-card{ margin-bottom: 3px; }

/******* swipe ***/
.swipe-indicator {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50%; height: 100%;
  pointer-events: none; z-index: 99999;
  border-radius: 0 100% 100% 0;
  opacity: 0; transition: opacity 0.3s ease-in-out;
}
.swipe-indicator-left {
  left: 0;
  background-color: rgba(220, 53, 69, 0.4);
  border-radius: 0 100% 100% 0;
}
.swipe-indicator-right {
  right: 0;
  background-color: rgba(76, 175, 80, 0.4);
  border-radius: 100% 0 0 100%;
}
.swipe-card .card-body .row .col-10 .badge { font-size: 12px; }

.container-fluid-custom{
  margin-top: 65px;
  padding-inline: 0.75rem;
}

#floating-bubble {
  width: 50px; height: 50px;
  border-radius: 50%;
  box-shadow: 0 8px 15px var(--danger);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; transition: box-shadow 0.25s ease; font-size: 25px;
  background: color-mix(in oklab, var(--danger) 62%, transparent);
  backdrop-filter: blur(8px);
  border: 2px solid color-mix(in oklab, var(--danger) 47%, transparent);
  color: #212121;
}

.box-shadow-custom{ box-shadow: 23px 23px 20px rgba(0,0,0,0.2); }

/************* sticky top custom *************/
.sticky-top-custom {
  position: sticky;
  top: 50px; left: 0; right: 0;
  z-index: 1020;
}
@supports not (position: sticky) {
  .sticky-top-custom { position: fixed; top: 55px; }
}

.container-no-margin{ margin-top: 25px; }
.container-margin{ margin-top: 60px !important; }

.select2{
  display: block; width: 100%;
  padding: .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-clip: padding-box;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/***SCANNER***/
#reader video{
  height: 200px !important;
  object-fit: cover;
}

/* .btn-outline-primary-custom toggles */
.btn-outline-primary-custom.active-toggle {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background-color: transparent !important;
}
.btn-outline-primary-custom.active {
  background-color: var(--primary) !important;
  color: #fff !important;
}

/*** animacion slide ***/
.page-preview {
  position: fixed; top: 0;
  width: 100%; height: 100%;
  background-color: var(--surface);
  z-index: 9999; overflow: auto; pointer-events: none;
  opacity: 0;
  transition: left 0.6s ease, right 0.6s ease, opacity 0.2s ease;
}
.page-preview.from-right { left: auto; right: -100%; }
.page-preview.from-left { right: auto; left: -100%; }
.page-preview.show { opacity: 1; pointer-events: auto; }
.page-preview.show.from-right { right: 0; }
.page-preview.show.from-left { left: 0; }

/** Subrayado **/
.resaltado-con-fondo {
  display: inline-block;
  color:white;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  align-content: center;
}

.avatar-img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background-color: transparent;
  padding: 2px;
}

/* MODALES SLIDE UP */
@media (max-width: 576px) {
  .modal-fullscreen-sm-down { padding: 0 !important; }
  .modal-fullscreen-sm-down .modal-dialog {
    max-width: 100% !important; margin: 0 !important; height: 100%;
  }
  .modal-fullscreen-sm-down .modal-content {
    height: 100%; border: 0; border-radius: 0;
  }
}
.modal-custom { align-items: flex-end !important; padding: 0 !important; }
.modal-custom.fade .modal-slide-up-custom { transform: translateY(100vh) !important; }
.modal-slide-up-custom {
  align-self: flex-end !important;
  transition: transform 0.3s ease-out;
  margin: 0 auto 0 auto;
  width: 100%; max-width: 600px;
  height: 90vh !important; max-height: 90vh !important; border-radius: 0;
}
.modal-custom.show .modal-slide-up-custom { transform: translateY(10vh) !important; }
.modal-slide-up-custom .modal-content {
  height: 100% !important;
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
@media (max-width: 575.98px) {
  .modal-slide-up-custom { max-width: 100% !important; margin: 0 !important; }
  .modal-slide-up-custom .modal-content {
    border-top-left-radius: 20px; border-top-right-radius: 20px;
  }
}

/* Tabs Class */
.nav-link.active{ color: var(--primary) !important; }
.nav-link{ color: var(--primary) !important; }

/* buttom close modal */
.btn-close.btn-close-white-custom{ color: #FFFFFF !important; }

/* Footer icons */
.icon-footer-img {
  width: 35px; height: 35px;
  object-fit: contain; display: block;
}

/* Nav link dark override */
.nav-link.text-dark-custom{ color: var(--text) !important; }

/* Contenedor codigo compartir casa */
#contenedorCodigoCompartir { transition: all 0.3s ease; }
.contenedor-compartir {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.contenedor-compartir.expandido { max-height: 200px; }
#contenedorEditarCasa{ transition: all 0.3s ease; }

/* Notificaciones */
.bg-leido{ background-color: var(--surface-2); }
.fecha-separadora { border-top: 1px solid var(--border); position: relative; }
.fecha-separadora span {
  background-color: var(--surface);
  position: relative; top: -0.7em;
}
/* Toast notificaciones */
.toast-noti {
  background-color: var(--surface);
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  padding: 0.5rem 0.75rem;
  margin: 0.3rem 1rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; min-height: 50px;
  animation: slideDown 0.2s ease;
  color: var(--text);
}
.toast-noti .toast-body { flex: 1; padding-right: 0.5rem; }
.toast-noti .btn-close { font-size: 0.9rem; line-height: 1; margin-left: 0.5rem; padding: 0.25rem; }
.toast-noti .btn-sm { font-size: 0.75rem; padding: 0.25rem 0.5rem; line-height: 1; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CREAR O UNIRSE A UNA CASA */
.dropdownIconoCasaMenu {
  min-width: auto !important;
  width: fit-content;
  padding: 0.25rem 0;
}

/* ICONOS */
.icon-custom {
  height: 20px; width: auto; object-fit: contain; margin-bottom: 4px;
  display: inline-block; vertical-align: middle;
  filter: var(--icon-filter);
}
.icon-custom-footer {
  height: 20px; width: auto; object-fit: contain;
  margin-bottom: 4px; display: inline-block; vertical-align: middle;
}

/* Tarjetas crédito */
.credit-card {
  margin-right: 5px; border-radius: 15px; transition: all 0.3s ease;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
}
.credit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card-number { font-size: 1.4rem; letter-spacing: 2px; }
.card-holder { text-transform: uppercase; }

/*Toggle theme*/
/* ===== Toggle Dark/Light ===== */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border);
  border-radius: 30px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 16px;
}

.theme-switch .slider .icon {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.theme-switch .slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Checked = Dark mode */
.theme-switch input:checked + .slider::before {
  transform: translateX(30px);
}

html[data-bs-theme="dark"] .form-control {
  background: var(--bg-canvas) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

html[data-bs-theme="dark"] .form-control::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.8;
}

html[data-bs-theme="dark"] .form-control:focus {
  background-color: var(--surface-2) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25) !important;
}

html[data-bs-theme="dark"] .input-group-text{
background: var(--bg-canvas) !important;
border: 1px solid var(--border) !important;
color: #fff;
}

html[data-bs-theme="dark"] .list-group-item{
  background: var(--bg-canvas) !important;
border: 1px solid var(--border) !important;
color: #fff;
}

.border-primary-custom{
 border: 1px solid var(--primary) !important;
}

html[data-bs-theme="dark"] .modal-body {
  background: var(--bg-canvas);
  color: var(--text);
}

html[data-bs-theme="dark"] .modal-header,
.modal-footer {
  background: var(--bg-canvas);
  color: var(--text);
  border-color: var(--border);
}