﻿.container {
    display: flex;
    flex-wrap: wrap;
    place-content:center;
    gap: 10px;
    padding: 10px;
    background-color: transparent;
}

    .container > div {
        flex: 0 1 200px; /* flexible min size */
        background-color: transparent;
        border: none;
        font-size: 18px;
        text-align: center;
    }

.overlay {
    position: fixed;
    inset: 0;
    background-color: transparent;
    display: grid;
    place-items: center;
    z-index: 1000;
}

.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-color: rgba(48, 52, 61,0.6);
    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";
    color: white;
}

.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: space-between;
    gap: .5rem;
}

.btn {
    border: 1px solid #ddd;
    background: #f7f7f7;
    padding: .45rem .8rem;
    border-radius: .5rem;
    cursor: pointer;
}

    .btn:hover {
        background: #efefef;
    }

.logviewer {
    white-space: pre-wrap; /* preserves \n line breaks */
    font-family: monospace; /* optional, better for logs */
    background-color: #111;
    color: #0f0;
    padding: 1rem;
    border-radius: 6px;
    max-height: 70vh;
    overflow-y: auto;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
.snackbar {
    visibility: visible; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    color: #000; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 150px; /* Center the snackbar */
    bottom: 50px; /* 30px from the bottom */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(255,255,255,.35);
}


/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}