/*
 * Alertas del sistema (SystemAlerts.js) para el frontend público (Bootstrap 5).
 * Equivalente mínimo de resources/assets/less/partials/components.less (#_popupAlert, ._stripAlert),
 * que solo se compila para el backend (Bootstrap 3).
 */

/* Popup */
#_popupAlert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

#_popupAlert .alertBody {
    position: relative;
    width: 88%;
    max-width: 600px;
    min-height: 200px;
    background: #efefef;
    border-radius: 6px;
    margin: 10% auto 0;
    box-shadow: 5px 5px 10px #4e4e4e;
    padding: 15px 50px 15px 15px;
    z-index: 10000000;
}

#_popupAlert .alertBody h2 {
    margin-top: 0;
    padding-bottom: 6px;
    width: fit-content;
    font-size: 1.5rem;
}

#_popupAlert .alertOverlay {
    width: 100%;
    height: 100%;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.5;
}

#_popupAlert ._removeBtn {
    font-size: 1.9rem;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

/* El partial usa un glyphicon (Bootstrap 3); en el frontend no hay glyphicons. */
#_popupAlert ._removeBtn .glyphicon-remove-circle::before {
    content: "\00d7";
}

#_popupAlert.danger ._title { border-bottom: 1px solid #fdc8c8; color: #bb4848; }
#_popupAlert.danger ._removeBtn { color: #bb4949; }
#_popupAlert.danger .alertBody { border-left: 10px solid #bb4949; }

#_popupAlert.success ._title { border-bottom: 1px solid #2cab94; color: #2cab94; }
#_popupAlert.success ._removeBtn { color: #2cab94; }
#_popupAlert.success .alertBody { border-left: 10px solid #2cab94; }

#_popupAlert.warning ._title { border-bottom: 1px solid #d78f31; color: #d78f31; }
#_popupAlert.warning ._removeBtn { color: #d78f31; }
#_popupAlert.warning .alertBody { border-left: 10px solid #d78f31; }

#_popupAlert.info ._title { border-bottom: 1px solid #126cbe; color: #126cbe; }
#_popupAlert.info ._removeBtn { color: #126cbe; }
#_popupAlert.info .alertBody { border-left: 10px solid #126cbe; }

/* Franja */
._stripAlert {
    position: relative;
    padding-right: 3rem;
}

._stripAlert h4,
._stripAlert p {
    margin-bottom: 5px;
}

._stripAlert p:last-child {
    margin-bottom: 0;
}

._stripAlert ul {
    padding: 0 0 0 17px;
}

/* Botón de cierre con clase .close (Bootstrap 3) */
._stripAlert .close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

._stripAlert .close:hover {
    opacity: 1;
}
