﻿#ajax-overlay {
    top: 0;
    z-index: 9999;
    width: 2%;
    height: 2%;
    display: none;
}

.cv-spinner {
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 183px;
}

.spinner {
    position: relative;
    width: 50px;
    height: 50px;
}

    .spinner::before,
    .spinner::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 4px solid transparent;
    }

    .spinner::before {
        border-top-color: #2693F8;
        border-right-color: #00c6ff;
        animation: rotation 1s linear infinite;
    }

    .spinner::after {
        border-bottom-color: #FF5733;
        border-left-color: #FFC300;
        animation: rotation 1s linear infinite reverse;
    }

@keyframes rotation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

:root {
    --primary-color: #002F6B;
    --progress-text-color: var(--primary-color);
    --progress-body-margin: 0 auto 8px;
}

.progress-container {
    display: flex;
    margin: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
}

    .progress-container.show-progress {
        opacity: 1;
        transform: scale(1);
    }

.progressloader {
    max-width: 50%;
}

.progress-body {
    margin: var(--progress-body-margin);
    width: auto;
    height: 145px;
    position: relative;
}

.progress-text {
    color: var(--progress-text-color);
    visibility: visible; /* Adjusted to ensure text is visible */
    text-align: center;
    margin-top: 10px; /* Add some space between spinner and text */
}

.popup-spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
    z-index: 1051; /* Should be higher than modal */
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-spinner-body {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.popup-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-spinner-overlay {
    position: fixed; /* Fixed position to cover the entire screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better visibility */
    z-index: 1055 !important; /* Higher than Bootstrap modal (1050) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-spinner-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.custom-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.3);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}