/**
 * Стили для прогресс-бара и экспорта AI-анализа
 * WPGIS v1.3.1
 */

/* Прогресс-бар */
.wpgis-progress-wrapper {
    margin-top: 20px;
    width: 100%;
}

.wpgis-progress-bar {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpgis-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.wpgis-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.wpgis-progress-text {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Кнопки экспорта */
.wpgis-export-buttons {
    margin-top: 20px;
    padding: 16px;
    background: rgba(241, 245, 255, 0.65);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.wpgis-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.95), rgba(236, 244, 255, 0.95));
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
}

.wpgis-export-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.18);
    background: linear-gradient(135deg, rgba(236, 244, 255, 0.98), rgba(219, 234, 254, 0.98));
    color: #312e81;
}

.wpgis-export-btn:active {
    transform: translateY(0);
}

.wpgis-export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Улучшенная модалка */
.wpgis-modal-body {
    min-height: 200px;
}

#wpgis-modal-result {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
}

#wpgis-modal-result::-webkit-scrollbar {
    width: 8px;
}

#wpgis-modal-result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#wpgis-modal-result::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

#wpgis-modal-result::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wpgis-export-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .wpgis-progress-bar {
        height: 24px;
    }
    
    .wpgis-progress-text {
        font-size: 13px;
    }
}






