/* Territory Insights Common Loader Styles */
.ti-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ti-loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ti-loader-container {
    text-align: center;
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ti-loader-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 35px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    opacity: 0;
    animation: logoFadeIn 0.5s ease-out forwards;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ti-loader-text {
    font-size: 17px;
    color: #4a5568;
    margin-bottom: 25px;
    font-weight: 500;
    font-family: 'Poppins regular', sans-serif;
    animation: textPulse 2s ease-in-out infinite;
}

.ti-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.ti-spinner-ring {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #529b50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(82, 155, 80, 0.3);
}

.ti-tip-card {
    margin-top: 25px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-left: 2px solid #529b50;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    animation: slideUp 0.5s ease-out 0.5s both;
}

.ti-tip-icon {
    font-size: 14px;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

.ti-tip-text {
    font-size: 11px;
    color: #4a5568;
    line-height: 1.4;
    text-align: left;
    font-family: 'Poppins regular', sans-serif;
    transition: opacity 0.3s ease;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
