/* =======================================================
   1. ESTILOS BASE Y POSICIONAMIENTO (DERECHA)
   ======================================================= */

.asw-menu-btn {
    background-color: #007bff !important; 
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5) !important;
    position: fixed !important;
    left: auto !important;       
    right: 20px !important;      
    bottom: 50px !important;     
    z-index: 500001 !important;
}
.asw-menu-reset, 
.asw-menu-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    font-family: sans-serif !important;
    position: relative !important;
    visibility: visible !important;
}

/* Dibujamos la X de cerrar */
.asw-menu-close::before {
    content: "✕" !important; 
    font-size: 18px !important;
    color: #495057 !important;
    font-weight: bold !important;
}

/* Dibujamos la flecha de reiniciar */
.asw-menu-reset::before {
    content: "↺" !important;
    font-size: 22px !important;
    color: #495057 !important;
    font-weight: bold !important;
}
.asw-menu {
    background: #ffffff !important; 
    color: #212529 !important;      
    border: 1px solid #dee2e6 !important;
    position: fixed !important;
    left: auto !important;
    right: 20px !important;
    top: 20px !important;
    border-radius: 8px !important;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1) !important;
}

/* Encabezado y Pie de página */
.asw-menu-header,
.asw-footer {
    background: #f8f9fa !important; 
    color: #212529 !important;      
    border-bottom: 1px solid #dee2e6 !important; 
}

/* VISIBILIDAD DE ICONOS (X y Reiniciar) */
.asw-menu-header .material-icons {
    color: #212529 !important; /* Color oscuro por defecto */
    font-size: 20px !important;
    display: inline-block !important;
}

.asw-btn {
    background: #ffffff !important; 
    color: #495057 !important;
    border: 1px solid #dee2e6 !important; 
    transition: all 0.3s ease !important;
}

.asw-btn:hover {
    background: #e9ecef !important; 
    border-color: #007bff !important;
}

/* =======================================================
   2. RECUADRO DE AJUSTE DE FUENTE
   ======================================================= */

.asw-adjust-font {
    background: #ecf3ff !important; 
    color: #212529 !important;      
    border: 1px solid #c2d7ff !important;
    border-radius: 8px !important;
}

.asw-adjust-font .asw-amount {
    color: #212529 !important; 
    font-weight: 700 !important;
}

.asw-adjust-font div[role=button] {
    background: #007bff !important; 
    color: #fff !important;
}

/* =======================================================
   3. CONFIGURACIÓN MODO OSCURO (OVERRIDE)
   ======================================================= */

html[data-bs-theme="dark"] .asw-menu,
.asw-dark-contrast .asw-menu {
    background: #1f2d3d !important; 
    color: #c2c7d0 !important; 
}

/* Iconos X y Reiniciar en MODO OSCURO */
html[data-bs-theme="dark"] .asw-menu-header .material-icons,
.asw-dark-contrast .asw-menu-header .material-icons {
    color: #ffffff !important; /* Forzamos blanco en modo oscuro */
}

html[data-bs-theme="dark"] .asw-adjust-font,
.asw-dark-contrast .asw-adjust-font {
    background: #343a40 !important; 
    color: #ffffff !important;
    border: 1px solid #454d55 !important;
}

html[data-bs-theme="dark"] .asw-amount,
html[data-bs-theme="dark"] .asw-adjust-font .label,
.asw-dark-contrast .asw-amount {
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .asw-menu-header,
html[data-bs-theme="dark"] .asw-footer,
.asw-dark-contrast .asw-menu-header,
.asw-dark-contrast .asw-footer {
    background: #343a40 !important; 
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .asw-btn,
.asw-dark-contrast .asw-btn {
    background: #343a40 !important; 
    color: #c2c7d0 !important;
    border-color: #454d55 !important;
}

/* =======================================================
   4. PRIORIDAD DE SELECCIÓN (EL COLOR VERDE)
   ======================================================= */

.asw-btn.asw-selected,
html[data-bs-theme="dark"] .asw-btn.asw-selected,
.asw-dark-contrast .asw-btn.asw-selected {
    background-color: #20c997 !important; 
    color: #ffffff !important;           
    border-color: #20c997 !important;
}

/* Overlay y Enlaces */
html[data-bs-theme="dark"] .asw-menu a { color: #c2c7d0 !important; }
.asw-overlay { background: rgba(0,0,0,0.5) !important; }