/* =====================
   Loader Component Styles
   ===================== */

/* Common loader styles all the pages */
.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 2rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 280px;
    padding: 2rem;
}

.loader-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.loader-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #2CA6A4;
    animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-circle:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-circle:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loader-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-message {
    font-family: 'Futura', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #242143;
    text-align: center;
    line-height: 1.4;
}

.loader-subtitle {
    font-family: 'Futura', sans-serif;
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Popup loader specific styles */
.popup-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    border-radius: 1rem;
}

.popup-loader-content {
    max-width: 300px;
}

/* List loader container styles */
.list-loader-container {
    width: 500px;
    height: 500px;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .loader-container {
        min-height: 150px;
        padding: 1rem;
    }
    
    .loader-content {
        max-width: 240px;
        padding: 1rem;
    }
    
    .loader-spinner {
        margin-bottom: 1rem;
    }
    
    .loader-circle {
        width: 10px;
        height: 10px;
    }
    
    .loader-message {
        font-size: 1rem;
    }
    
    .loader-subtitle {
        font-size: 0.9rem;
    }
    
    .popup-loader-content {
        max-width: 260px;
    }
    
    .popup-loader-container {
        border-radius: 0.5rem;
    }

    .list-loader-container {
        width: 300px;
        height: 300px;
        align-items: center;
        justify-content: center;
    }
}
