﻿.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn .18s ease;
}

.custom-modal-dialog {
    width: 100%;
    max-width: 520px;
    padding: 1rem;
    animation: modalIn .2s ease;
}

.custom-modal-content {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.22), 0 8px 20px rgba(0,0,0,.12);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.custom-modal-body {
    padding: 1.25rem;
    font-size: .95rem;
}

.logout-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.logout-icon {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(var(--bs-danger-rgb), .12);
    color: var(--bs-danger);
    font-size: 2rem;
    animation: popIn .25s ease;
    z-index: 1;
}

    .logout-icon::before {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: 999px;
        background: rgba(var(--bs-danger-rgb), .08);
        z-index: -1;
    }

    .logout-icon::after {
        content: "";
        position: absolute;
        inset: -18px;
        border-radius: 999px;
        background: rgba(var(--bs-danger-rgb), .04);
        z-index: -2;
    }

.logout-text {
    font-size: 1rem;
    color: var(--bs-body-color);
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

    .custom-modal-footer .btn {
        min-width: 100px;
        border-radius: .75rem;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
