/**
 * CSS for Image Compression Status
 */

.compression-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    min-height: 120px;
    font-size: 12px;
    color: #6c757d;
}

.compression-status i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #007bff;
}

.compression-status.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.compression-status.success i {
    color: #28a745;
}

.compression-status small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.8;
}

/* Animation for compression progress */
.compression-status i.fa-compress {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Enhance existing media gallery styles */
.media-gallery-wrap .compression-status {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Loading state improvements */
.tfcl-listing-gallery .media-gallery-wrap {
    min-height: 140px;
    margin-bottom: 15px;
}

/* Success message styling */
.compression-success-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #0c5460;
}

.compression-success-info i {
    margin-right: 5px;
    color: #17a2b8;
}

/* Error state styling */
.compression-status.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.compression-status.error i {
    color: #dc3545;
}

/* Upload progress styling */
.compression-status .fa-spinner {
    color: #007bff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved visual hierarchy */
.media-gallery-wrap {
    position: relative;
    transition: all 0.3s ease;
}

.media-gallery-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Better spacing for compressed images */
.media-gallery-wrap .compression-success-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(23, 162, 184, 0.9);
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 0 0 4px 4px;
    margin: 0;
}
