/*
 * Institute — SweetAlert2
 * Tema visual global para web, panel y administración.
 * No modifica la librería vendor.
 */

:root {
    --institute-swal-bg: #191c22;
    --institute-swal-field: #111318;
    --institute-swal-soft: #20242c;
    --institute-swal-border: #303640;
    --institute-swal-text: #f4f5f7;
    --institute-swal-muted: #aeb6c2;
    --institute-swal-accent: #b20000;
}


/* Fondo */

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(7, 9, 12, .72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* Ventana */

.swal2-container .swal2-popup {
    color: var(--institute-swal-text) !important;
    background: var(--institute-swal-bg) !important;

    border: 1px solid var(--institute-swal-border);
    border-radius: 16px;

    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);

    font-family: inherit;
}


/* Encabezado y contenido */

.swal2-container .swal2-title {
    margin-bottom: 4px;

    color: var(--institute-swal-text);

    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.swal2-container .swal2-content,
.swal2-container .swal2-html-container {
    color: var(--institute-swal-muted);

    font-size: 14px;
    line-height: 1.55;
}

.swal2-container .swal2-content p,
.swal2-container .swal2-html-container p {
    color: inherit;
}


/* Iconos */

.swal2-container .swal2-icon {
    margin-top: 20px;
    margin-bottom: 18px;
}

.swal2-container .swal2-icon.swal2-warning {
    color: #d39a45;
    border-color: rgba(211, 154, 69, .55);
}

.swal2-container .swal2-icon.swal2-error {
    color: #e05b5b;
    border-color: rgba(224, 91, 91, .55);
}

.swal2-container .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #e05b5b;
}

.swal2-container .swal2-icon.swal2-info {
    color: #7ea6cf;
    border-color: rgba(126, 166, 207, .55);
}

.swal2-container .swal2-icon.swal2-question {
    color: var(--institute-swal-muted);
    border-color: rgba(174, 182, 194, .5);
}

.swal2-container .swal2-icon.swal2-success {
    color: #43c78a;
    border-color: rgba(67, 199, 138, .62);
}

.swal2-container .swal2-icon.swal2-success .swal2-success-ring,
.swal2-container .swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-container .swal2-icon.swal2-success .swal2-success-circular-line-right,
.swal2-container .swal2-icon.swal2-success .swal2-success-fix {
    display: none !important;
}

.swal2-container .swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-container .swal2-icon.swal2-success .swal2-success-line-long {
    background-color: #43c78a !important;
}


/* Loader */

.swal2-container .institute-swal-loader-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 92px;
}

.swal2-container .institute-swal-loader {
    display: block;

    width: 46px;
    height: 46px;

    border: 3px solid rgba(255, 255, 255, .12);
    border-top-color: var(--institute-swal-accent);
    border-right-color: rgba(178, 0, 0, .55);
    border-radius: 50%;

    animation: institute-swal-spin .75s linear infinite;
}

@keyframes institute-swal-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .swal2-container .institute-swal-loader {
        animation-duration: 1.5s;
    }
}


/* Acciones */

.swal2-container .swal2-actions {
    margin-top: 24px;
}

.swal2-container .swal2-styled,
.swal2-container .swal2-popup .btn {
    min-height: 40px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    box-shadow: none;
}

.swal2-container .swal2-styled.swal2-confirm,
.swal2-container .swal2-popup .btn-primary {
    color: #fff;
    background: var(--institute-swal-accent);
    border-color: var(--institute-swal-accent);
}

.swal2-container .swal2-styled.swal2-confirm:hover,
.swal2-container .swal2-popup .btn-primary:hover {
    color: #fff;
    background: #980000;
    border-color: #980000;
}

.swal2-container .swal2-styled.swal2-cancel,
.swal2-container .swal2-popup .btn-secondary {
    color: #d9dde3;
    background: var(--institute-swal-soft);
    border-color: var(--institute-swal-border);
}

.swal2-container .swal2-styled.swal2-cancel:hover,
.swal2-container .swal2-popup .btn-secondary:hover {
    color: #fff;
    background: #292e37;
    border-color: #3b414c;
}

.swal2-container .swal2-popup .btn-danger {
    color: #fff;
    background: #a51f2d;
    border-color: #a51f2d;
}

.swal2-container .swal2-popup .btn-danger:hover {
    color: #fff;
    background: #8f1926;
    border-color: #8f1926;
}


/* Inputs usados dentro de SweetAlert */

.swal2-container .swal2-input,
.swal2-container .swal2-textarea,
.swal2-container .swal2-select {
    color: var(--institute-swal-text);
    background: var(--institute-swal-field);

    border: 1px solid var(--institute-swal-border);
    border-radius: 9px;

    box-shadow: none;
}

.swal2-container .swal2-input:focus,
.swal2-container .swal2-textarea:focus,
.swal2-container .swal2-select:focus {
    border-color: var(--institute-swal-accent);

    box-shadow: 0 0 0 2px rgba(178, 0, 0, .12);
}


/* Formularios incrustados */

.swal2-container .swal2-popup .input-label {
    display: block;

    margin-bottom: 8px;

    color: #d9dde3;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.swal2-container .swal2-popup .form-control {
    min-height: 42px;
    padding: 0 13px;

    color: var(--institute-swal-text);
    background: var(--institute-swal-field);

    border: 1px solid var(--institute-swal-border);
    border-radius: 9px;

    box-shadow: none;
}

.swal2-container .swal2-popup textarea.form-control {
    min-height: 100px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.swal2-container .swal2-popup .form-control::placeholder {
    color: #737d8a;
}

.swal2-container .swal2-popup .form-control:focus {
    color: var(--institute-swal-text);
    background: var(--institute-swal-field);

    border-color: var(--institute-swal-accent);

    outline: 0;
    box-shadow: 0 0 0 2px rgba(178, 0, 0, .12);
}

.swal2-container .swal2-popup .form-control:disabled,
.swal2-container .swal2-popup .form-control[readonly] {
    color: #8f98a5;
    background: #16191f;
}


/* Cierre */

.swal2-container .swal2-close {
    color: var(--institute-swal-muted);
}

.swal2-container .swal2-close:hover {
    color: #fff;
}


/* Mobile */

@media (max-width: 575px) {

    .swal2-container {
        padding: 12px;
    }

    .swal2-container .swal2-popup {
        max-width: 100%;
        padding: 22px 16px 20px;

        border-radius: 13px;
    }

    .swal2-container .swal2-title {
        font-size: 20px;
    }

    .swal2-container .swal2-content,
    .swal2-container .swal2-html-container {
        font-size: 13px;
    }

    .swal2-container .swal2-actions {
        width: 100%;
    }
}
