/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
/* =====================================================================
   Allways Remote — MP-GUAC — Tema/branding del login y la UI de Guacamole.
   Espejo de los tokens de marca del repo (branding/tokens/tokens.css):
   acento Azul índigo #2563EB · tipografía Manrope · tema OSCURO · monograma "A".

   Mecanismo: extensión de RECURSOS (guac-manifest.json). Este CSS se ANEXA al
   CSS de la app, así que sobreescribe. Los recursos (logo) se sirven en
   /app/ext/<namespace>/<path> → acá: /app/ext/allways-remote/images/...
   (rutas ABSOLUTAS válidas porque la app va en la RAÍZ: WEBAPP_CONTEXT=ROOT;
   si NO usás ROOT, prefijá con /guacamole — VERIFICAR).

   ⚠ VERIFICAR los SELECTORES contra la versión real con las DevTools del
   navegador (Inspeccionar el login): Guacamole puede renombrar clases entre
   versiones. Los de abajo valen para la familia 1.5/1.6.
   ⚠ Sin llamadas externas (privacidad): NO se importa Manrope de Google Fonts.
   Se usa Manrope si está instalada en el cliente; si no, stack de sistema. Para
   forzar Manrope, agregá el woff2 a images/ (resources) + @font-face (ver README).
   ===================================================================== */

:root {
  /* Espejo de tokens (valores crudos: el CSS de extensión no ve los del repo). */
  --aw-bg:            #0B0F19;
  --aw-surface:       #0F172A;
  --aw-surface-2:     #1E293B;
  --aw-border:        #1E293B;
  --aw-border-strong: #334155;
  --aw-text:          #E5E7EB;
  --aw-text-muted:    #A8B3C4;
  --aw-accent:        #60A5FA;   /* links/íconos sobre oscuro (AA) */
  --aw-accent-solid:  #2563EB;   /* relleno de botón (la marca) */
  --aw-accent-hover:  #1D4ED8;
  --aw-on-accent:     #FFFFFF;
  --aw-danger:        #F87171;
  --aw-radius:        12px;
  --aw-radius-sm:     8px;
  --aw-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Base ---------------------------------------------------------- */
body,
.login-ui,
.login-ui .login-dialog,
.welcome,
input, button, select, textarea {
  font-family: var(--aw-font);
}

body {
  background-color: var(--aw-bg);
  color: var(--aw-text);
}

/* ---- Pantalla de login -------------------------------------------- */
.login-ui {
  background-color: var(--aw-bg);
  /* halo sutil con el acento, sin imágenes externas */
  background-image:
    radial-gradient(60rem 60rem at 50% -20%, rgba(37, 99, 235, 0.18), transparent 60%);
}

/* Caja del login: superficie elevada con borde sutil (estilo del repo). */
.login-ui .login-dialog {
  background-color: var(--aw-surface);
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.65);
  color: var(--aw-text);
  padding: 2rem 1.75rem;
}

/* Logo: reemplaza el de Guacamole por el wordmark de Allways Remote.
   El elemento .logo se pinta como imagen de fondo (recurso de la extensión). */
.login-ui .login-dialog .logo,
.login-ui .logo {
  content: "";
  display: block;
  width: min(220px, 70vw);   /* no desbordar en pantallas chicas (iPhone) */
  max-width: 100%;
  height: 56px;
  margin: 0 auto 1.25rem auto;
  background-image: url('/app/ext/allways-remote/images/allways-logo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Texto de versión y notas: atenuado. */
.login-ui .login-dialog .version,
.login-ui .login-dialog .version * {
  color: var(--aw-text-muted);
  opacity: 0.8;
}

/* Campos del formulario. */
.login-ui .login-dialog .login-fields .labeled-field input,
.login-ui input[type="text"],
.login-ui input[type="password"],
.login-ui input[type="email"] {
  background-color: var(--aw-surface-2);
  border: 1px solid var(--aw-border-strong);
  border-radius: var(--aw-radius-sm);
  color: var(--aw-text);
  padding: 0.6rem 0.75rem;
}

.login-ui .login-fields .labeled-field input:focus,
.login-ui input:focus {
  outline: none;
  border-color: var(--aw-accent);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5); /* anillo de foco AA */
}

/* Botón primario (Login / Continuar). */
.login-ui .buttons input[type="submit"],
.login-ui button[type="submit"],
.login-ui .button.login,
button.menu-button.login {
  background-color: var(--aw-accent-solid);
  border: 1px solid var(--aw-accent-solid);
  border-radius: var(--aw-radius-sm);
  color: var(--aw-on-accent);
  font-weight: 600;
  padding: 0.6rem 1rem;
  transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.login-ui .buttons input[type="submit"]:hover,
.login-ui button[type="submit"]:hover {
  background-color: var(--aw-accent-hover);
  border-color: var(--aw-accent-hover);
}

/* Mensaje de error (login fallido / TOTP inválido). */
.login-ui .login-error,
.error-text,
.notification.error {
  color: var(--aw-danger);
}

/* ---- UI principal (tras el login) --------------------------------- */
/* Header / menú: logo y acentos coherentes. VERIFICAR selector exacto. */
.menu .logo,
#content .header .logo,
.guac-menu .logo {
  background-image: url('/app/ext/allways-remote/images/allways-mark.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

/* Enlaces y acentos de la app. */
a, .clickable, .link {
  color: var(--aw-accent);
}

/* ---- Pie de login inyectado por html/login-footer.html ------------ */
.aw-login-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--aw-text-muted);
}
.aw-login-footer strong { color: var(--aw-text); font-weight: 600; }

/* Respeta usuarios con movimiento reducido. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/*
 * Allways Remote - MP-APP-FIX-2 - Ajuste del display a la pantalla en movil (iOS).
 *
 * PROBLEMA (fundado en source guacamole-client 1.6 + WebKit): en iOS Safari la
 * barra dinamica hace que 100vh SOBREESTIME el alto visible. Guacamole calcula el
 * auto-fit (minScale = min(main.offsetWidth/displayW, main.offsetHeight/displayH))
 * contra main.offsetHeight; si ese alto es mayor que lo realmente visible, el
 * escritorio remoto no encaja completo (se ve "cortado"). El meta viewport ya es
 * correcto: el problema es la unidad de alto del contenedor.
 *
 * FIX: en dispositivos tactiles, forzar el contenedor del cliente a usar la altura
 * REAL visible (dvh / -webkit-fill-available, con 100vh de fallback). Ademas
 * position:relative en .main para que el sensor <object> de resize de Guacamole
 * (guacResize.js, position:absolute adentro) posicione bien -> condicion para que
 * la rotacion re-sincronice (ver mobile-display.js).
 *
 * SEGURIDAD/CSP: solo CSS, mismo origen, sin url() remotas ni @import. Se inyecta
 * via la clave "css" del guac-manifest (concatenado en el bundle del cliente).
 * Scope (pointer: coarse) -> NO afecta escritorio (donde 100vh anda bien).
 */
@media (pointer: coarse) {
  .client-main,
  .client-main.main,
  .main {
    height: 100vh;                    /* fallback navegadores sin dvh/fill-available */
    height: -webkit-fill-available;   /* iOS Safari < 15.4 */
    height: 100dvh;                   /* iOS Safari moderno (gana sobre los de arriba) */
    position: relative;               /* contexto para el <object> resize-sensor */
  }
}

/*
 * MP-MOBILE-2 (T4): MITIGACION del hueco negro del teclado (GUACAMOLE-1953). mobile-keyboard.js
 * marca <html>.aw-kb-open y fija --aw-kb-h = alto visible (visualViewport) mientras el teclado esta
 * abierto. Achicamos el display a ese alto -> el escritorio queda ARRIBA del teclado (sin hueco
 * negro) y con resize-method=display-update la sesion se acomoda. Al cerrarse el teclado, se quita
 * la clase -> vuelve a 100dvh. Mayor especificidad + posterior => gana sobre la regla de arriba.
 * Solo tactil. Sin url()/@import/https (self-contained).
 *
 * SCOPE: la clase 'aw-kb-open' vive en <html> (global). Toda regla que la use DEBE llevar un
 * selector descendiente/hijo (.client-main/.main) para NO afectar paginas fuera de la sesion
 * (p.ej. la lista de conexiones). Nunca usar '.aw-kb-open' como selector suelto.
 */
@media (pointer: coarse) {
  .aw-kb-open .client-main,
  .aw-kb-open .client-main.main,
  .aw-kb-open .main {
    height: var(--aw-kb-h, 100dvh);
  }
}
/* =====================================================================
   Allways Remote - MP-UI-1 - Estilos del FAB + menu + onboarding.

   Se ANEXA al CSS de la app (mecanismo 'css' del guac-manifest.json), servido
   same-origin -> CSP style-src 'self' (NO necesita 'unsafe-inline' para esta hoja).
   El unico estilo inline del JS es el transform del FAB durante el drag (posicion
   dinamica), cubierto por la CSP style-src 'unsafe-inline' ya presente.

   Reglas: TODO va namespaced con '.aw-' (la hoja es global) para no pisar Guacamole.
   Animaciones SOLO con transform/opacity (compositor, 60fps; sin layout-thrash).
   Sin recursos externos: SIN url(), SIN @import, SIN image-set (iconos = SVG inline
   construido por el JS). El no-bloqueo del input del escritorio NO depende de
   visibility: cada overlay tiene pointer-events:none en reposo y auto solo al abrir.

   Tokens de marca: espejo de gateway/branding/allways-branding/theme.css (mismos
   valores crudos; radios alineados: 12/8 como el resto del producto, +lg 16 para
   superficies grandes).
   ===================================================================== */

.aw-root {
  --aw-bg:            #0B0F19;
  --aw-surface:       #0F172A;
  --aw-surface-2:     #1E293B;
  --aw-border:        #1E293B;
  --aw-border-strong: #334155;
  --aw-text:          #E5E7EB;
  --aw-text-muted:    #A8B3C4;
  --aw-accent:        #60A5FA;
  --aw-accent-solid:  #2563EB;
  --aw-accent-hover:  #1D4ED8;
  --aw-on-accent:     #FFFFFF;
  --aw-danger:        #F87171;
  --aw-danger-solid:  #DC2626;
  --aw-radius:        12px;   /* espejo de theme.css */
  --aw-radius-sm:     8px;    /* espejo de theme.css */
  --aw-radius-lg:     16px;   /* superficies grandes (menu/onboarding/FAB) */
  --aw-shadow:        0 12px 34px rgba(0, 0, 0, 0.55);
  --aw-shadow-fab:    0 8px 22px rgba(37, 99, 235, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --aw-grad:          radial-gradient(120% 120% at 30% 25%, #3B82F6 0%, var(--aw-accent-solid) 55%, var(--aw-accent-hover) 100%);
  --aw-ease:          cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-quint: natural al soltar */
  --aw-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  font-family: var(--aw-font);
  position: fixed;
  inset: 0;
  z-index: 2147483000;   /* por encima del display y del menu nativo de Guacamole */
  pointer-events: none;  /* el contenedor no captura input; solo los hijos al activarse */
  display: none;
}
.aw-root.aw-root--on { display: block; }

/* Sonda invisible: su padding es env(safe-area-inset-*); el JS lee el valor RESUELTO
   (getComputedStyle resuelve env() en una propiedad real) para mantener el FAB dentro
   del area segura del iPhone. No interactua ni se ve. */
.aw-probe {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

/* ---- FAB (boton burbuja) ------------------------------------------- */
.aw-fab {
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--aw-grad);
  color: var(--aw-on-accent);
  box-shadow: var(--aw-shadow-fab);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;            /* el FAB SI recibe input (es el unico siempre activo) */
  -webkit-tap-highlight-color: transparent;
  touch-action: none;              /* el drag lo maneja el JS via Pointer Events */
  transition: box-shadow 180ms var(--aw-ease);
}
.aw-fab.aw-fab--snap  { transition: transform 380ms var(--aw-ease), box-shadow 180ms var(--aw-ease); will-change: transform; }
.aw-fab.aw-fab--drag  { cursor: grabbing; will-change: transform; }
.aw-fab.aw-fab--active { box-shadow: 0 10px 26px rgba(37, 99, 235, 0.6), 0 0 0 4px rgba(96, 165, 250, 0.25); }
.aw-fab:focus-visible {
  outline: none;
  box-shadow: var(--aw-shadow-fab), 0 0 0 3px var(--aw-bg), 0 0 0 6px var(--aw-accent);
}

.aw-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 220ms var(--aw-ease), opacity 160ms linear;
}
/* Micro-interaccion de press: el ICONO se hunde (no el FAB, cuyo transform lleva la
   posicion del drag y no debe pisarse). */
.aw-fab:active .aw-fab__icon { transform: scale(0.88); }
.aw-fab.aw-fab--active .aw-fab__icon { transform: rotate(90deg) scale(0.92); opacity: 0.9; }

.aw-fab .aw-ic {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aw-fab__icon--open .aw-ic { fill: currentColor; stroke: none; }

/* Pestania (sliver) que se asoma cuando el FAB esta minimizado. */
.aw-fab__tab {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 160ms linear;
  pointer-events: none;
}
.aw-fab.aw-fab--side-left .aw-fab__tab  { right: 6px; }
.aw-fab.aw-fab--side-right .aw-fab__tab { left: 6px; }

/* Estado MINIMIZADO: el FAB se desliza casi fuera del borde (translate por JS), queda
   el sliver. La 1a vez "respira" para mostrar donde quedo (gated por reduced-motion). */
.aw-fab.aw-fab--min { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.aw-fab.aw-fab--min .aw-fab__icon { opacity: 0; transform: scale(0.6); }
.aw-fab.aw-fab--min .aw-fab__tab  { opacity: 1; animation: aw-breathe 2.4s var(--aw-ease) 2; }
.aw-fab.aw-fab--min.aw-fab--side-left  { border-radius: 0 28px 28px 0; }
.aw-fab.aw-fab--min.aw-fab--side-right { border-radius: 28px 0 0 28px; }
@keyframes aw-breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.45; transform: translateY(-50%) scaleY(1.25); } }

/* ---- Scrim (fondo oscurecido al abrir el menu) --------------------- */
/* Sin backdrop-filter animado (jank en iOS Safari): solo oscurecido por opacity. */
.aw-scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms linear;
}
.aw-scrim.aw-scrim--on { opacity: 1; pointer-events: auto; }

/* ---- Menu ---------------------------------------------------------- */
.aw-menu {
  position: fixed;
  background: var(--aw-surface);
  color: var(--aw-text);
  border: 1px solid var(--aw-border-strong);
  box-shadow: var(--aw-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.aw-menu.aw-menu--open { opacity: 1; visibility: visible; pointer-events: auto; }

/* Mobile (puntero grueso): hoja inferior (bottom sheet). max-height + scroll seguro. */
@media (pointer: coarse) {
  .aw-menu {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)) 10px;
    transform: translateY(110%);
    transition: transform 360ms var(--aw-ease), opacity 200ms linear, visibility 0s linear 360ms;
  }
  .aw-menu.aw-menu--open {
    transform: translateY(0);
    transition: transform 360ms var(--aw-ease), opacity 200ms linear;
  }
}

/* Desktop (puntero fino): tarjeta flotante anclada al lado del FAB (segun state.side). */
@media (pointer: fine) {
  .aw-menu {
    bottom: 84px;
    width: 320px;
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 104px);
    border-radius: var(--aw-radius-lg);
    padding: 8px;
    transform: translateY(12px) scale(0.96);
    transition: transform 240ms var(--aw-ease), opacity 180ms linear, visibility 0s linear 240ms;
  }
  .aw-menu.aw-menu--side-right { right: 18px; left: auto;  transform-origin: bottom right; }
  .aw-menu.aw-menu--side-left  { left: 18px;  right: auto; transform-origin: bottom left; }
  .aw-menu.aw-menu--open { transform: translateY(0) scale(1); transition: transform 240ms var(--aw-ease), opacity 180ms linear; }
}

.aw-menu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px 8px;
  flex: none;
}
.aw-menu__brand {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--aw-grad);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--aw-on-accent);
  font-weight: 800;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
}
.aw-menu__title { flex: 1; font-weight: 700; font-size: 15px; letter-spacing: 0.1px; }
.aw-x {
  flex: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--aw-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: background-color 140ms linear, color 140ms linear;
}
.aw-x:hover { background: var(--aw-surface-2); color: var(--aw-text); }
.aw-x:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--aw-accent); }
.aw-x .aw-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.aw-menu__list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain; transition: opacity 160ms linear; }
.aw-menu__list--dim { opacity: 0.25; pointer-events: none; }
.aw-sep { height: 1px; background: var(--aw-border); margin: 6px 12px; }

/* Filas de accion: target grande (>=52px), icono + etiqueta + ayuda. */
.aw-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--aw-text);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms linear, transform 120ms var(--aw-ease);
  -webkit-tap-highlight-color: transparent;
}
.aw-item:hover { background: var(--aw-surface-2); }
.aw-item:active { transform: scale(0.985); }
.aw-item:focus-visible { outline: none; background: var(--aw-surface-2); box-shadow: inset 0 0 0 2px var(--aw-accent); }

.aw-item__ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--aw-surface-2);
  color: var(--aw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-item__ic .aw-ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aw-item__tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aw-item__label { font-weight: 650; font-size: 15px; }
.aw-item__hint { font-size: 12.5px; color: var(--aw-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aw-item--danger .aw-item__ic { background: rgba(220, 38, 38, 0.14); color: var(--aw-danger); }
.aw-item--danger .aw-item__label { color: var(--aw-danger); }

/* ---- MP-APP-MOBILE-UX: modo tactil + scroll + zoom (solo touch) ---- */
.aw-cap {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--aw-text-muted);
  padding: 8px 12px 4px;
}

/* Control segmentado del modo de control (toque preciso / touchpad). */
.aw-mode { padding: 0 4px 2px; }
.aw-seg {
  display: flex;
  gap: 4px;
  margin: 0 8px;
  padding: 4px;
  border-radius: 12px;
  background: var(--aw-bg);
  border: 1px solid var(--aw-border);
}
.aw-seg__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--aw-text-muted);
  font-family: inherit;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--aw-ease), color 160ms linear, box-shadow 160ms linear;
}
.aw-seg__ic { display: flex; align-items: center; justify-content: center; }
.aw-seg__btn .aw-ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aw-seg__btn--on {
  background: var(--aw-surface);
  color: var(--aw-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--aw-border-strong);
}
.aw-seg__btn--on .aw-seg__ic { color: var(--aw-accent); }
.aw-seg__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--aw-accent); }
.aw-mode__hint { margin: 8px 12px 2px; font-size: 12.5px; line-height: 1.45; color: var(--aw-text-muted); }

/* Pads de dos botones (scroll arriba/abajo, zoom -/+). */
.aw-padwrap { padding: 0 4px 2px; }
.aw-pad { display: flex; gap: 6px; margin: 0 8px; }
.aw-pad__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--aw-border-strong);
  border-radius: 11px;
  background: var(--aw-surface-2);
  color: var(--aw-text);
  font-family: inherit;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms linear, transform 120ms var(--aw-ease);
}
.aw-pad__btn:hover { background: var(--aw-border); }
.aw-pad__btn:active { transform: scale(0.97); }
.aw-pad__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--aw-accent); }
.aw-pad__ic { display: flex; align-items: center; justify-content: center; }
.aw-pad__btn .aw-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- MP-APP-MOBILE-FIX + DONACIONES ------------------------------- */
/* Item "café": discreto, acento de marca en el icono (no grita). */
.aw-item--cafe .aw-item__ic { background: rgba(37, 99, 235, 0.16); color: var(--aw-accent); }

/* Tarjeta sutil de café al desconectar (overlay accesible, fácil de cerrar). */
.aw-cafe {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms linear, visibility 0s linear 220ms;
}
.aw-cafe.aw-cafe--on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 220ms linear; }
@media (pointer: fine) { .aw-cafe { align-items: center; } }
.aw-cafe__card {
  width: 100%;
  max-width: 400px;
  background: var(--aw-surface);
  border: 1px solid var(--aw-border-strong);
  border-radius: var(--aw-radius-lg);
  box-shadow: var(--aw-shadow);
  padding: 18px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(16px) scale(0.98);
  transition: transform 320ms var(--aw-ease);
}
.aw-cafe.aw-cafe--on .aw-cafe__card { transform: translateY(0) scale(1); }
.aw-cafe__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.aw-cafe__ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--aw-grad);
  color: var(--aw-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-cafe__ico .aw-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aw-cafe__t { font-weight: 750; font-size: 16px; color: var(--aw-text); }
.aw-cafe__d { margin: 0 0 14px 0; font-size: 13.5px; line-height: 1.5; color: var(--aw-text-muted); }
.aw-cafe__foot { display: flex; flex-direction: column; gap: 14px; }
.aw-cafe__dont { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--aw-text-muted); cursor: pointer; touch-action: manipulation; }
.aw-cafe__chk { width: 18px; height: 18px; accent-color: var(--aw-accent-solid); cursor: pointer; }
.aw-cafe__row { display: flex; gap: 8px; justify-content: flex-end; }

/* Panel de DIAGNOSTICO (temporal): log en pantalla, no bloquea el input (pointer-events:none). */
.aw-dbg {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  max-height: 42vh;
  overflow-y: auto;
  margin: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.86);
  border: 1px solid var(--aw-border-strong);
  color: #9AE6B4;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;            /* nunca tapa el FAB ni el escritorio */
  display: none;
  z-index: 2147482900;
}
.aw-dbg.aw-dbg--on { display: block; }
.aw-dbg__ln { padding: 1px 0; }

/* Entrada premium con micro-stagger (opacity+translateY, compositor; reduced-motion lo anula). */
.aw-menu.aw-menu--open .aw-item { animation: aw-rise 320ms var(--aw-ease) both; }
.aw-menu.aw-menu--open .aw-item:nth-child(1) { animation-delay: 30ms; }
.aw-menu.aw-menu--open .aw-item:nth-child(2) { animation-delay: 60ms; }
.aw-menu.aw-menu--open .aw-item:nth-child(3) { animation-delay: 90ms; }
.aw-menu.aw-menu--open .aw-item:nth-child(4) { animation-delay: 120ms; }
.aw-menu.aw-menu--open .aw-item:nth-child(n+5) { animation-delay: 150ms; }
@keyframes aw-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Confirmacion de desconexion (alertdialog dentro del menu) ----- */
.aw-confirm {
  margin: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--aw-surface-2);
  border: 1px solid var(--aw-border-strong);
}
.aw-confirm__q { margin: 0 0 12px 0; font-size: 14.5px; font-weight: 600; color: var(--aw-text); }
.aw-confirm__row { display: flex; gap: 8px; justify-content: flex-end; }

.aw-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--aw-radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms linear, transform 120ms var(--aw-ease);
}
.aw-btn:active { transform: scale(0.97); }
.aw-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--aw-bg), 0 0 0 5px var(--aw-accent); }
.aw-btn--primary { background: var(--aw-accent-solid); color: var(--aw-on-accent); }
.aw-btn--primary:hover { background: var(--aw-accent-hover); }
.aw-btn--danger { background: var(--aw-danger-solid); color: #fff; }
.aw-btn--danger:hover { filter: brightness(1.08); }
.aw-btn--ghost { background: transparent; border-color: var(--aw-border-strong); color: var(--aw-text); }
.aw-btn--ghost:hover { background: var(--aw-bg); }

/* ---- Onboarding ---------------------------------------------------- */
.aw-onb {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms linear, visibility 0s linear 220ms;
}
.aw-onb.aw-onb--on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 220ms linear; }
@media (pointer: fine) { .aw-onb { align-items: center; } }

.aw-onb__card {
  width: 100%;
  max-width: 420px;
  background: var(--aw-surface);
  border: 1px solid var(--aw-border-strong);
  border-radius: var(--aw-radius-lg);
  box-shadow: var(--aw-shadow);
  padding: 18px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(16px) scale(0.98);
  transition: transform 320ms var(--aw-ease);
}
.aw-onb.aw-onb--on .aw-onb__card { transform: translateY(0) scale(1); }

.aw-onb__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.aw-onb__title { font-weight: 750; font-size: 16px; }
.aw-onb__tips { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.aw-onb__tip { display: flex; gap: 12px; align-items: flex-start; }
.aw-onb__dot {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--aw-accent-solid);
  color: var(--aw-on-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}
.aw-onb__tw { display: flex; flex-direction: column; gap: 2px; }
.aw-onb__t { font-weight: 700; font-size: 14.5px; }
.aw-onb__d { font-size: 13.5px; line-height: 1.45; color: var(--aw-text-muted); }
.aw-onb__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aw-onb__dont { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--aw-text-muted); cursor: pointer; touch-action: manipulation; }
.aw-onb__chk { width: 18px; height: 18px; accent-color: var(--aw-accent-solid); cursor: pointer; }

/* ---- Accesibilidad: respeta movimiento reducido -------------------- */
@media (prefers-reduced-motion: reduce) {
  .aw-root *,
  .aw-root *::before,
  .aw-root *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
