/* =========================================================
   LOGOUT CONFIRMATION MODAL
========================================================= */

.logout-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.logout-modal.show {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   OVERLAY
========================================================= */

.logout-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.logout-modal-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 420px;

    padding: 32px 30px 28px;

    background: #ffffff;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.20);

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

    transition: transform 0.25s ease;
}

.logout-modal.show .logout-modal-content {
    transform: translateY(0) scale(1);
}


/* =========================================================
   ALERT ICON
========================================================= */

.logout-modal-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff4e5;
    color: #f59e0b;

    font-size: 30px;
    font-weight: 800;
    font-family: Arial, sans-serif;
}


/* =========================================================
   TITLE
========================================================= */

.logout-modal-title {
    margin: 0 0 10px;

    color: #222222;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   MESSAGE
========================================================= */

.logout-modal-message {
    margin: 0 auto;

    max-width: 330px;

    color: #666666;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   BUTTONS
========================================================= */

.logout-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: 26px;
}

.logout-modal-button {
    min-width: 120px;

    padding: 11px 20px;

    border: none;
    border-radius: 10px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.logout-modal-button:hover {
    transform: translateY(-1px);
}

.logout-modal-button:active {
    transform: translateY(0);
}


/* =========================================================
   CANCEL BUTTON
========================================================= */

.logout-modal-cancel {
    background: #f1f1f1;
    color: #444444;
}

.logout-modal-cancel:hover {
    background: #e7e7e7;
}


/* =========================================================
   LOGOUT BUTTON
========================================================= */

.logout-modal-confirm {
    background: #dc2626;
    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(220, 38, 38, 0.20);
}

.logout-modal-confirm:hover {
    background: #b91c1c;
}


/* =========================================================
   PREVENT BACKGROUND SCROLL
========================================================= */

body.logout-modal-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 600px) {

    .logout-modal {
        padding: 18px;
    }

    .logout-modal-content {
        max-width: 380px;

        padding: 28px 22px 24px;

        border-radius: 16px;
    }

    .logout-modal-icon {
        width: 54px;
        height: 54px;

        margin-bottom: 16px;

        font-size: 25px;
    }

    .logout-modal-title {
        font-size: 20px;
    }

    .logout-modal-message {
        font-size: 14px;
    }

    .logout-modal-actions {
        margin-top: 22px;
    }

    .logout-modal-button {
        min-width: 110px;
        padding: 10px 17px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .logout-modal {
        padding: 14px;
    }

    .logout-modal-content {
        padding: 25px 18px 21px;
        border-radius: 15px;
    }

    .logout-modal-icon {
        width: 50px;
        height: 50px;

        font-size: 23px;
    }

    .logout-modal-title {
        font-size: 19px;
    }

    .logout-modal-message {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .logout-modal-actions {
        flex-direction: column;
        gap: 9px;
    }

    .logout-modal-button {
        width: 100%;
        min-width: 0;
    }
}