@import url('./shared.css');
*, *::before, *::after { 
    margin:0; 
    padding:0; 
    box-sizing:border-box; 
  }

  /* Sobrescribir contenedores globales externos si los hay */
  html, body, main, .content {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body{
    background: var(--bg);
    color: var(--fg);
    font-family: "Arial Narrow", Arial, sans-serif;
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* ============ FONDO ANIMADO ============ */
  .animated-bg, .animated-background{
    position: fixed; inset:0; z-index:0; pointer-events:none;
  }
  .orb{
    position:absolute; border-radius:50%; filter: blur(80px); opacity:.5;
    animation: float 14s ease-in-out infinite;
  }
  .orb-1{ width:min(480px, 80vw); height:min(480px, 80vw); top:-10%; left:-8%;
    background: radial-gradient(circle, rgba(255,170,30,.45), transparent 70%); }
  .orb-2{ width:min(520px, 85vw); height:min(520px, 85vw); bottom:-15%; right:-10%;
    background: radial-gradient(circle, rgba(255,140,0,.35), transparent 70%);
    animation-delay: -4s; }
  .orb-3{ width:min(360px, 60vw); height:min(360px, 60vw); top:40%; left:60%;
    background: radial-gradient(circle, rgba(255,200,90,.25), transparent 70%);
    animation-delay: -8s; }

  @keyframes float{
    0%,100%{ transform: translate(0,0) scale(1); }
    33%   { transform: translate(30px,-20px) scale(1.05); }
    66%   { transform: translate(-20px,30px) scale(0.95); }
  }

  .grid-pattern{
    position:absolute; inset:0;
    background-image:
      linear-gradient(rgba(255,170,30,.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,170,30,.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  }

  .scanline{
    position:absolute; left:0; right:0; height:2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity:.35; animation: scan 6s linear infinite;
  }
  @keyframes scan{
    0%   { top:0; opacity:0; }
    10%  { opacity:.4; }
    90%  { opacity:.4; }
    100% { top:100%; opacity:0; }
  }
/* ==========================================================================
   NUEVA PERSONALIZACIÓN 100% CSS NATIVO (appearance: base-select)
   ========================================================================== */

/* 1. Activar el nuevo modo 'base-select' nativo */
select,
::picker(select) {
  appearance: base-select; /* Activa la personalización 100% en CSS */
}

/* 2. Estilo del botón / campo principal */
select,
.form-control select,
.login-input select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background-color: rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 170, 30, 0.25);
  border-radius: 8px;
  color: var(--fg, #f0f0f0);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  
  /* Icono de flecha en SVG dorado */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* Estado Focus / Abierto */
select:focus,
select:open {
  border-color: var(--gold, #ffc85e);
  box-shadow: 
    0 0 0 3px rgba(255, 170, 30, 0.15),
    0 0 18px rgba(255, 170, 30, 0.25),
    inset 0 0 12px rgba(255, 170, 30, 0.08);
  background-color: rgba(0, 0, 0, 0.85);
}

/* 3. Personalización del Popover / Picker desplegable ::picker(select) */
::picker(select) {
  background-color: rgba(18, 18, 22, 0.95) !important;
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 170, 30, 0.3);
  border-radius: 12px;
  padding: 6px;
  margin-top: 6px;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 170, 30, 0.15);
  
  /* Transición fluida al desplegar */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 4. Personalización de las Opciones (<option>) dentro del Popover */
select option {
  padding: 10px 14px;
  margin: 2px 0;
  border-radius: 6px;
  background-color: transparent;
  color: var(--fg, #e1e1e1);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Opción activa / Hover / Seleccionada */
select option:hover,
select option:focus,
select option:checked {
  background: linear-gradient(90deg, rgba(255, 200, 94, 0.2) 0%, rgba(138, 90, 0, 0.3) 100%) !important;
  color: #fff3d6 !important;
  font-weight: 500;
}

/* Indicador de opción seleccionada (Checkmark nativo) */
select::checkmark {
  color: #ffc85e;
}

/* Ajustes de margen cuando el select está dentro de un contenedor con icono a la izquierda */
.ticket-select-wrapper select,
.input-group select {
  padding-left: 44px;
}
/* ============ PERSONALIZACIÓN GLOBAL DE SELECTS ============ */
select, 
.form-control select,
.login-input select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background-color: rgba(0, 0, 0, 0.65) !important;
  border: 1.5px solid rgba(255, 170, 30, 0.25);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  
  /* Eliminar estilo por defecto del navegador */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Icono de flecha desplegable personalizada en dorado */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* Enfoque al hacer clic */
select:focus,
.form-control select:focus {
  border-color: var(--gold);
  box-shadow: 
    0 0 0 3px rgba(255, 170, 30, 0.15),
    0 0 18px rgba(255, 170, 30, 0.25),
    inset 0 0 12px rgba(255, 170, 30, 0.08);
  background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Estilo para las opciones del menú desplegable */
select option {
  background-color: var(--panel-1) !important;
  color: var(--fg) !important;
  padding: 10px;
  font-size: 14px;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
  background-color: var(--gold-deep) !important;
  color: var(--gold-hi) !important;
}

/* Ajuste de margen cuando el select está dentro de un contenedor con icono a la izquierda */
.ticket-select-wrapper select,
.input-group select {
  padding-left: 44px;
  margin-bottom: 10px;
}
svg {
  
  color: var(--primary, #f5a623);
  pointer-events: none;
}

i[data-lucide] {
  color: var(--primary, #f5a623);
}