﻿html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Loader wrapper for centering */
.wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    text-align: center;
    transform: translate(-50%, -50%);
}

/* Dark transparent overlay covering whole page */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    z-index: 999998;
    transition: all 0.3s;
}

/* Loader container (on top of overlay) */
.spanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(42, 42, 42, 0.33);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    visibility: hidden;
    opacity: 0;
    z-index: 999999;
    transition: all 0.3s;
}

    /* Show overlay and loader */
    .spanner.show,
    .overlay.show {
        visibility: visible;
        opacity: 1;
    }

/* Spinner animation */
.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    animation-fill-mode: both;
    animation: load7 1.8s infinite ease-in-out;
}

.loader {
    color: #ffffff;
    font-size: 10px;
    margin: auto;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
}

    .loader:before,
    .loader:after {
        content: '';
        position: absolute;
        top: 0;
    }

    .loader:before {
        left: -3.5em;
        animation-delay: -0.32s;
    }

    .loader:after {
        left: 3.5em;
    }

@keyframes load7 {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

/* Optional: Toastr dark theme customization */
.toast {
    background-color: #323232 !important;
    color: #ffffff !important;
}

.toast-success {
    background-color: #51a351 !important;
}

.toast-error {
    background-color: #bd362f !important;
}

.toast-warning {
    background-color: #f89406 !important;
}

.toast-info {
    background-color: #2f96b4 !important;
}
