/**
 * CNPA Upload Widget Styles
 *
 * Document upload area, drag-and-drop states, status indicators,
 * and retry buttons.
 */

/* ========================================
   Document Upload Widget
   ======================================== */

.upload-area {
    border: 2px dashed var(--gray-300, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-6, 24px);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-body, #f9fafb);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary, #3b82f6);
    background: var(--primary-light, #eff6ff);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2, 8px);
}

.upload-icon {
    color: var(--text-secondary, #6b7280);
}

.status-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2, 8px);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-300, #e5e7eb);
    border-top-color: var(--primary, #3b82f6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.status-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.status-icon.success {
    background: var(--success, #10b981);
}

.status-icon.error {
    background: var(--error, #ef4444);
}

.status-text {
    font-size: var(--text-sm, 14px);
    font-weight: 500;
    color: var(--text-primary, #374151);
    transition: opacity 0.3s ease;
}

.error-feedback {
    color: var(--error, #ef4444);
    font-size: var(--text-xs, 13px);
    margin-top: 4px;
}

.btn-retry {
    background: none;
    border: none;
    color: var(--primary, #3b82f6);
    font-size: var(--text-xs, 13px);
    cursor: pointer;
    text-decoration: underline;
}
