/* Enhanced Loading Animation for API Checker */
.gesan-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease-in;
}

.gesan-loading-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 320px;
    animation: slideUp 0.4s ease-out;
}

.gesan-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.gesan-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.gesan-loading-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.gesan-loading-message {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}

.gesan-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 5px;
}

.gesan-loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.gesan-loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.gesan-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.gesan-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.gesan-loading-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.gesan-progress-container {
    width: 100%;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.gesan-progress-bar {
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.gesan-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #28a745, #20c997);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.gesan-progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}