﻿.buttonnode {
    display: inline-block;
    padding: 10px;
    border-radius: 10rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.15rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .buttonnode:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #D61F37;
        border-radius: 10rem;
        z-index: -2;
    }

    .buttonnode:before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #901324;
        transition: all 0.3s;
        border-radius: 10rem;
        z-index: -1;
    }

    .buttonnode:hover {
        color: #fff;
    }

        .buttonnode:hover:before {
            width: 100%;
        }

.buttonnodeaction {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .buttonnodeaction:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #D61F37;
        border-radius: 5px;
        z-index: -2;
    }

    .buttonnodeaction:before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #901324;
        transition: all 0.3s;
        border-radius: 5px;
        z-index: -1;
    }

    .buttonnodeaction:hover {
        color: #fff;
    }

        .buttonnodeaction:hover:before {
            width: 100%;
        }

.buttonnodeactiongreen {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .buttonnodeactiongreen:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: green;
        border-radius: 5px;
        z-index: -2;
    }

    .buttonnodeactiongreen:before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: darkgreen;
        transition: all 0.3s;
        border-radius: 5px;
        z-index: -1;
    }

    .buttonnodeactiongreen:hover {
        color: #fff;
    }

        .buttonnodeactiongreen:hover:before {
            width: 100%;
        }

.spinner {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    min-width: 180px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

.ring {
    width: 44px;
    height: 44px;
    border: 4px solid #ddd;
    border-top-color: #555;
    border-radius: 50%;
    animation: spin 900ms linear infinite;
}

.label {
    font-size: .95rem;
    color: #333;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }



}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: grid;
    place-items: center;
    z-index: 1000;
}

.modal-panel {
    width: 500px;
    height: 500px; /* << exact size */
    background: #222325;
    color: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(255,255,255,.35);
    display: grid;
    grid-template-rows: auto 1fr auto; /* title | body | footer */
    outline: none;
}

.modal-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
}

.modal-body {
    padding: 14px 16px;
    overflow: auto;
    display: inline-grid;
}

.modal-footer {
    margin-top: 20px;
    padding: 10px 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.btn {
    border: 1px solid #ddd;
    background: #f7f7f7;
    padding: .45rem .8rem;
    border-radius: .5rem;
    cursor: pointer;
}

    .btn:hover {
        background: #efefef;
    }