/* =========================================================
   Apprise — Popup Modal SGFENS v2 (Pretoriano Bronze Theme)
   Rediseñado para congruencia con el tema bronce y carbón
   ========================================================= */

/* ---- Overlay ---- */
.appriseOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    z-index: 99999998;
}

/* ---- Contenedor principal ---- */
.appriseOuter {
    position: fixed;
    z-index: 99999999;
    min-width: 320px;
    max-width: 440px;
    width: 90%;
    display: none;
    background: #ffffff;
    border: 1px solid rgba(197, 137, 85, 0.35);
    border-top: 4px solid #c58955;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25),
                0 8px 24px rgba(197, 137, 85, 0.15);
    overflow: hidden;
    font-family: 'Inter', system-ui, Arial, sans-serif;
    animation: appriseSlideIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes appriseSlideIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---- Ícono superior (question / info / warning) ---- */
.appriseOuter > div[align="center"] {
    padding: 24px 20px 0 20px;
    text-align: center;
}

.appriseOuter > div[align="center"] img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(197, 137, 85, 0.35));
}

/* ---- Contenido interior ---- */
.appriseInner {
    padding: 20px 28px 8px 28px;
    color: #1f1b17;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    text-shadow: none;
}

.appriseInner b,
.appriseInner strong {
    color: #9e6128;
    font-weight: 700;
}

/* ---- Área de botones ---- */
.aButtons {
    margin: 18px 20px 22px 20px;
    text-align: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.aInput {
    margin: 12px 20px 0 20px;
    text-align: center;
}

/* ---- Botones base ---- */
.appriseInner button,
.aButtons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Inter', system-ui, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    text-shadow: none;
    letter-spacing: 0.01em;
}

/* Botón OK / Sí (acción principal con degradado bronce) */
.aButtons button[value="ok"] {
    background: linear-gradient(180deg, #d89b62 0%, #b37337 100%);
    color: #1a1108;
    border: none;
    box-shadow: 0 4px 14px rgba(179, 115, 55, 0.35);
}

.aButtons button[value="ok"]:hover {
    background: linear-gradient(180deg, #e4a76d 0%, #bf7f43 100%);
    box-shadow: 0 6px 18px rgba(179, 115, 55, 0.45);
    transform: translateY(-1px);
    color: #100a04;
}

.aButtons button[value="ok"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(179, 115, 55, 0.3);
}

/* Botón Cancelar / No (acción secundaria en marfil cálido) */
.aButtons button[value="cancel"] {
    background: #f5eee3;
    color: #4a3e33;
    border: 1px solid #d5cbbe;
}

.aButtons button[value="cancel"]:hover {
    background: #eae0d0;
    color: #1f1a14;
    border-color: #bfaea0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.aButtons button[value="cancel"]:active {
    transform: translateY(0);
}

/* ---- Input de texto ---- */
.aTextbox {
    border: 1px solid #d5cbbe;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 270px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 12px;
    font-family: 'Inter', system-ui, Arial, sans-serif;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
    color: #1f1b17;
}

.aTextbox:focus {
    border-color: #c58955;
    box-shadow: 0 0 0 3px rgba(197, 137, 85, 0.25);
}

/* =========================================================
   DARK MODE
   ========================================================= */

html.dark-theme .appriseOverlay {
    background: rgba(8, 7, 6, 0.85);
}

html.dark-theme .appriseOuter {
    background: #181512;
    border-color: rgba(197, 137, 85, 0.35);
    border-top: 4px solid #d89b62;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

html.dark-theme .appriseInner {
    color: #eae3d9;
}

html.dark-theme .appriseInner b,
html.dark-theme .appriseInner strong {
    color: #d89b62;
}

html.dark-theme .aButtons button[value="cancel"] {
    background: #2a231c;
    color: #d8cebf;
    border-color: #3f342a;
}

html.dark-theme .aButtons button[value="cancel"]:hover {
    background: #382f25;
    color: #ffffff;
    border-color: #554637;
}

html.dark-theme .aTextbox {
    background: #110f0d;
    color: #eae3d9;
    border-color: #3f342a;
}

html.dark-theme .aTextbox:focus {
    border-color: #d89b62;
    box-shadow: 0 0 0 3px rgba(216, 155, 98, 0.25);
}