/* =========================================================
   MENSAGEM DO SISTEMA
========================================================= */

.system-message-overlay {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(
            2,
            8,
            20,
            0.78
        );

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;

}


/* =========================================================
   ABERTO
========================================================= */

.system-message-overlay.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =========================================================
   CAIXA
========================================================= */

.system-message-box {

    width: min(
        430px,
        100%
    );

    position: relative;

    overflow: hidden;

    padding:
        30px
        28px
        24px;

    border-radius: 18px;

    border:
        1px solid
        rgba(
            60,
            255,
            155,
            0.22
        );

    background:
        linear-gradient(
            145deg,
            #071322,
            #0b1b2c
        );

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

    text-align: center;

    transform:
        translateY(15px)
        scale(0.97);

    transition:
        transform 0.22s ease;

}


.system-message-overlay.active
.system-message-box {

    transform:
        translateY(0)
        scale(1);

}


/* =========================================================
   LINHA SUPERIOR
========================================================= */

.system-message-box::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #31e981,
            transparent
        );

}


/* =========================================================
   ÍCONE
========================================================= */

.system-message-icon {

    width: 62px;

    height: 62px;

    margin:
        0 auto
        18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 28px;

    font-weight: 800;

    background:
        rgba(
            49,
            233,
            129,
            0.12
        );

    color:
        #31e981;

    border:
        1px solid
        rgba(
            49,
            233,
            129,
            0.35
        );

    box-shadow:
        0 0 25px
        rgba(
            49,
            233,
            129,
            0.12
        );

}


/* =========================================================
   TEXTO
========================================================= */

.system-message-content h3 {

    margin:
        0 0 10px;

    color:
        #ffffff;

    font-size:
        20px;

    font-weight:
        700;

}


.system-message-content p {

    margin: 0;

    color:
        #aebdca;

    font-size:
        14px;

    line-height:
        1.6;

    word-break:
        break-word;

}


/* =========================================================
   BOTÃO
========================================================= */

.system-message-button {

    width: 100%;

    margin-top:
        24px;

    padding:
        12px 18px;

    border: none;

    border-radius:
        10px;

    cursor: pointer;

    font-size:
        14px;

    font-weight:
        700;

    color:
        #03130a;

    background:
        linear-gradient(
            135deg,
            #31e981,
            #20c96d
        );

    box-shadow:
        0 8px 24px
        rgba(
            49,
            233,
            129,
            0.18
        );

    transition:
        transform 0.18s ease,
        filter 0.18s ease;

}


.system-message-button:hover {

    transform:
        translateY(-1px);

    filter:
        brightness(1.07);

}


.system-message-button:active {

    transform:
        translateY(0);

}


/* =========================================================
   ERRO
========================================================= */

.system-message-overlay.erro
.system-message-icon {

    color:
        #ff6262;

    background:
        rgba(
            255,
            75,
            75,
            0.12
        );

    border-color:
        rgba(
            255,
            75,
            75,
            0.35
        );

}


.system-message-overlay.erro
.system-message-box::before {

    background:
        linear-gradient(
            90deg,
            transparent,
            #ff5353,
            transparent
        );

}


/* =========================================================
   AVISO
========================================================= */

.system-message-overlay.aviso
.system-message-icon {

    color:
        #ffc857;

    background:
        rgba(
            255,
            200,
            87,
            0.12
        );

    border-color:
        rgba(
            255,
            200,
            87,
            0.35
        );

}


.system-message-overlay.aviso
.system-message-box::before {

    background:
        linear-gradient(
            90deg,
            transparent,
            #ffc857,
            transparent
        );

}


/* =========================================================
   INFORMAÇÃO
========================================================= */

.system-message-overlay.info
.system-message-icon {

    color:
        #55b8ff;

    background:
        rgba(
            85,
            184,
            255,
            0.12
        );

    border-color:
        rgba(
            85,
            184,
            255,
            0.35
        );

}