/**
 * Cimo JetEngine Integration Styles
 */

.cimo-compression-indicator {
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007cba;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cimo-compression-indicator.loading {
    border-left-color: #dba617;
    background: #fff8e1;
    animation: pulse 1.5s infinite;
}

.cimo-compression-indicator.success {
    border-left-color: #46b450;
    background: #f0f9f0;
}

.cimo-compression-indicator.error {
    border-left-color: #dc3232;
    background: #fef7f7;
}

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

/* JetEngine form specific styles */
.jet-form__field-wrap .cimo-compression-indicator {
    margin-top: 5px;
    font-size: 11px;
    padding: 6px 10px;
}

.jet-form-builder .cimo-compression-indicator {
    margin-top: 5px;
    font-size: 11px;
}

/* Elementor integration styles */
.elementor-field-type-upload .cimo-compression-indicator {
    margin-top: 8px;
}

/* Progress indicator for multiple files */
.cimo-progress-indicator {
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 12px;
}

.cimo-progress-bar {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.cimo-progress-fill {
    height: 100%;
    background: #007cba;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* File list with compression status */
.cimo-file-list {
    margin-top: 10px;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.cimo-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.cimo-file-item:last-child {
    border-bottom: none;
}

.cimo-file-name {
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cimo-file-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

.cimo-file-status.compressing {
    background: #fff8e1;
    color: #8a6914;
}

.cimo-file-status.compressed {
    background: #f0f9f0;
    color: #2e7d32;
}

.cimo-file-status.error {
    background: #fef7f7;
    color: #c62828;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cimo-compression-indicator {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .cimo-file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cimo-file-name {
        margin-right: 0;
        margin-bottom: 3px;
    }
}
