/**
 * Secure Contact Us Hub - File Upload Progress
 * @package ContactInbox
 * @since   1.7.0
 */

.cin-file-upload-progress {
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: none;
}

.cin-file-upload-progress.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.file-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-progress-bar-wrapper {
    flex: 1;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.file-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.file-progress-bar.file-progress-success {
    background: linear-gradient(90deg, #4CAF50, #2e7d32);
}

.file-progress-bar.file-progress-error {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.file-progress-text {
    min-width: 50px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.file-progress-text.file-progress-success {
    color: #4CAF50;
}

.file-progress-text.file-progress-error {
    color: #f44336;
}

.cin-file-upload-info {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

/* Disabled state for submit button */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
