﻿ 
   
         
        /* ========================================
           OPTION 1: Modern Circular Spinner
           ======================================== */
         
        #divLoader {
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: fixed;
            display: block;
            opacity: 0.7;
            background-color: #808080;
            z-index: 99;
            text-align: center;
        }
        #divLoader.show {
            display: flex;
        }

        .spinner-container {
            text-align: center;
              /* Centering */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 100;
        }
         
.spinner {
    width: 100px;
    height: 100px;
    border: 10px solid #f0f0f0;          /* base circle color */
    border-top: 10px solid #ff4d4d;       /* bright red */
    border-right: 10px solid #ff9999;     /* light red accent */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }  
        }

        .spinner-text {
            color: #2c3e50;
            font-size: 16px;
            font-weight: 600;
        }

        /* ========================================
           OPTION 2: Dual Ring Spinner
           ======================================== */
        
        #divLoader2 {
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: fixed;
            display: none;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(5px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        #divLoader2.show {
            display: flex;
        }

        .dual-ring {
            display: inline-block;
            width: 80px;
            height: 80px;
        }

        .dual-ring:after {
            content: " ";
            display: block;
            width: 64px;
            height: 64px;
            margin: 8px;
            border-radius: 50%;
            border: 6px solid #667eea;
            border-color: #667eea transparent #764ba2 transparent;
            animation: dual-ring 1.2s linear infinite;
        }

        @keyframes dual-ring {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ========================================
           OPTION 3: Pulse Dots Spinner
           ======================================== */
        
        #divLoader3 {
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: fixed;
            display: none;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(5px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        #divLoader3.show {
            display: flex;
        }

        .pulse-dots {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .pulse-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            animation: pulse 1.4s ease-in-out infinite;
        }

        .pulse-dot:nth-child(1) {
            animation-delay: 0s;
        }

        .pulse-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .pulse-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes pulse {
            0%, 80%, 100% {
                transform: scale(0.6);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* ========================================
           OPTION 4: Gradient Circle (RECOMMENDED)
           ======================================== */
        
        #divLoader4 {
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: fixed;
            display: none;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(5px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        #divLoader4.show {
            display: flex;
        }

        .gradient-spinner {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: conic-gradient(
                from 0deg,
                transparent 0deg,
                #667eea 90deg,
                #764ba2 180deg,
                transparent 270deg
            );
            animation: gradient-spin 1s linear infinite;
            position: relative;
        }

        .gradient-spinner::before {
            content: '';
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            background: white;
            border-radius: 50%;
        }

        @keyframes gradient-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ========================================
           OPTION 5: Bouncing Bars
           ======================================== */
        
        #divLoader5 {
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: fixed;
            display: none;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(5px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        #divLoader5.show {
            display: flex;
        }

        .bouncing-bars {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .bar {
            width: 6px;
            height: 40px;
            background: linear-gradient(180deg, #667eea, #764ba2);
            border-radius: 3px;
            animation: bounce 1.2s ease-in-out infinite;
        }

        .bar:nth-child(1) {
            animation-delay: 0s;
        }

        .bar:nth-child(2) {
            animation-delay: 0.1s;
        }

        .bar:nth-child(3) {
            animation-delay: 0.2s;
        }

        .bar:nth-child(4) {
            animation-delay: 0.3s;
        }

        .bar:nth-child(5) {
            animation-delay: 0.4s;
        }

        @keyframes bounce {
            0%, 80%, 100% {
                height: 20px;
            }
            40% {
                height: 50px;
            }
        }

        /* Demo Grid */
        .demo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .demo-item {
            text-align: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .demo-item h3 {
            font-size: 14px;
            color: #6c757d;
            margin-bottom: 15px;
        }