﻿
/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

/* Circular Spinner */
.spinner-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.spinner {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotate 2s linear infinite;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

    .spinner-circle:before {
        content: '';
        display: block;
        margin: 0 auto;
        width: 20%;
        height: 20%;
        background-color: #e34444;
        border-radius: 100%;
        animation: bounce-delay 1.4s infinite ease-in-out both;
    }

    .spinner-circle:nth-child(2) {
        transform: rotate(30deg);
    }

        .spinner-circle:nth-child(2):before {
            background-color: #e34444;
            animation-delay: -1.3s;
        }

    .spinner-circle:nth-child(3) {
        transform: rotate(60deg);
    }

        .spinner-circle:nth-child(3):before {
            background-color: #e34444;
            animation-delay: -1.2s;
        }

    .spinner-circle:nth-child(4) {
        transform: rotate(90deg);
    }

        .spinner-circle:nth-child(4):before {
            background-color: #2d7f3c;
            animation-delay: -1.1s;
        }

    .spinner-circle:nth-child(5) {
        transform: rotate(120deg);
    }

        .spinner-circle:nth-child(5):before {
            background-color: #2d7f3c;
            animation-delay: -1.0s;
        }

    .spinner-circle:nth-child(6) {
        transform: rotate(150deg);
    }

        .spinner-circle:nth-child(6):before {
            background-color: #2d7f3c;
            animation-delay: -0.9s;
        }

    .spinner-circle:nth-child(7) {
        transform: rotate(180deg);
    }

        .spinner-circle:nth-child(7):before {
            background-color: #2d7f3c;
            animation-delay: -0.8s;
        }

    .spinner-circle:nth-child(8) {
        transform: rotate(210deg);
    }

        .spinner-circle:nth-child(8):before {
            background-color: #2d7f3c;
            animation-delay: -0.7s;
        }

    .spinner-circle:nth-child(9) {
        transform: rotate(240deg);
    }

        .spinner-circle:nth-child(9):before {
            background-color: #2d7f3c;
            animation-delay: -0.6s;
        }

    .spinner-circle:nth-child(10) {
        transform: rotate(270deg);
    }

        .spinner-circle:nth-child(10):before {
            background-color: #e34444;
            animation-delay: -0.5s;
        }

    .spinner-circle:nth-child(11) {
        transform: rotate(300deg);
    }

        .spinner-circle:nth-child(11):before {
            background-color: #e34444;
            animation-delay: -0.4s;
        }

    .spinner-circle:nth-child(12) {
        transform: rotate(330deg);
    }

        .spinner-circle:nth-child(12):before {
            background-color: #e34444;
            animation-delay: -0.3s;
        }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce-delay {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Loading Text */
.loading-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

    .loading-text .pac {
        color: #e34444;
    }

    .loading-text .plus {
        color: #2d7f3c;
    }

.loading-subtext {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 300;
}

/* Alternative Ring Spinner (simpler option) */
.ring-spinner {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

    .ring-spinner:after {
        content: " ";
        display: block;
        width: 84px;
        height: 84px;
        margin: 8px;
        border-radius: 50%;
        border: 8px solid #fff;
        border-color: #e34444 transparent #2d7f3c transparent;
        animation: ring-spinner 1.2s linear infinite;
    }

@keyframes ring-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulse Effect for Logo */
.loading-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
